update docs
This commit is contained in:
parent
fec8b5ccef
commit
c298faa57a
1 changed files with 2 additions and 2 deletions
|
|
@ -770,8 +770,8 @@ The 'before' function allows modification of the request parameters and can (for
|
|||
'before'=>function(&$cmd, &$db, &$tab, &$id, &$in) {
|
||||
if ($cmd == 'delete') {
|
||||
$cmd = 'update'; // change command to update
|
||||
foreach($in as $k => $o) {
|
||||
$in[$k]->deleted = date('Y-m-d H:i:s', time());
|
||||
foreach($in as &$o) {
|
||||
$o->deleted = date('Y-m-d H:i:s', time());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue