diff --git a/README.md b/README.md index e0e74cb..274958b 100644 --- a/README.md +++ b/README.md @@ -770,7 +770,7 @@ 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 - $in->deleted = date('Y-m-d H:i:s', time()); + $in = (object)array('deleted' => date('Y-m-d H:i:s', time())); } }, 'column_authorizer'=>function($cmd, $db ,$tab, $col) {