Skip to content

Commit c240c4f

Browse files
committed
bugfix
1 parent 75febbe commit c240c4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,8 +1139,8 @@ protected function applyBeforeHandler(&$action,&$database,&$table,&$ids,&$callba
11391139
$max = max(count($ids),count($inputs));
11401140
for ($i=0;$i<$max;$i++) {
11411141
$id = isset($ids[$i])?$ids[$i]:false;
1142-
$input = isset($inputs[$i])?$inputs[$i]:false;
1143-
$callback($action,$database,$table,$id,$input);
1142+
if (!isset($inputs[$i])) $inputs[$i] = false;
1143+
$callback($action,$database,$table,$id,$inputs[$i]);
11441144
}
11451145
}
11461146
}

0 commit comments

Comments
 (0)