Skip to content

Commit

Permalink
fix(condition): better integrity check
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jan 31, 2022
1 parent 17ef606 commit b93a46c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/conditionnabletrait.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ public function checkConditionSettings(array $input): bool {
return false;
}

if (!isset($input['_conditions']) || count($input['_conditions']) < 1) {
return false;
}

$input = $input['_conditions'];
// All arrays of condition exists
if (!isset($input['plugin_formcreator_questions_id']) || !isset($input['show_condition'])
Expand Down

0 comments on commit b93a46c

Please sign in to comment.