Skip to content

Commit bdfabf8

Browse files
committed
fix(conditionnabletrait): php warning
1 parent ec8fcc6 commit bdfabf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/conditionnabletrait.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function updateConditions($input) : bool {
138138
// Arrays all have the same count and have at least one item
139139
$questionFk = PluginFormcreatorQuestion::getForeignKeyField();
140140
$order = 0;
141-
while (count($input[$questionFk]) > 0) {
141+
while (isset($input[$questionFk]) && count($input[$questionFk]) > 0) {
142142
$order++;
143143
$value = array_shift($input['show_value']);
144144
$questionID = (int) array_shift($input[$questionFk]);

0 commit comments

Comments
 (0)