Skip to content

Commit 444b530

Browse files
committed
update docs
1 parent c298faa commit 444b530

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,8 +770,8 @@ The 'before' function allows modification of the request parameters and can (for
770770
'before'=>function(&$cmd, &$db, &$tab, &$id, &$in) {
771771
if ($cmd == 'delete') {
772772
$cmd = 'update'; // change command to update
773-
foreach($in as &$o) {
774-
$o->deleted = date('Y-m-d H:i:s', time());
773+
foreach($in as $k => $o) {
774+
$in[$k]->deleted = date('Y-m-d H:i:s', time());
775775
}
776776
}
777777

0 commit comments

Comments
 (0)