Skip to content

Commit 9d14c9b

Browse files
committed
bugfix in line with #212
1 parent c8047a2 commit 9d14c9b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

api.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,9 +1137,11 @@ protected function parseGetParameterArray($get,$name,$characters) {
11371137
protected function applyBeforeHandler(&$action,&$database,&$table,&$ids,&$callback,&$inputs) {
11381138
if (is_callable($callback,true)) {
11391139
$max = count($ids)?:count($inputs);
1140-
$origaction = $action;
1140+
$initials = array('action'=>$action,'database'=>$database,'table'=>$table);
11411141
for ($i=0;$i<$max;$i++) {
1142-
$action = $origaction;
1142+
$action = $initials['action'];
1143+
$database = $initials['database'];
1144+
$table = $initials['table'];
11431145
if (!isset($ids[$i])) $ids[$i] = false;
11441146
if (!isset($inputs[$i])) $inputs[$i] = false;
11451147
$callback($action,$database,$table,$ids[$i],$inputs[$i]);

0 commit comments

Comments
 (0)