mevdschee hace 8 años
padre
commit
c298faa57a
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      README.md

+ 2
- 2
README.md Ver fichero

@@ -770,8 +770,8 @@ The 'before' function allows modification of the request parameters and can (for
770 770
 'before'=>function(&$cmd, &$db, &$tab, &$id, &$in) { 
771 771
 	if ($cmd == 'delete') {
772 772
 		$cmd = 'update'; // change command to update
773
-		foreach($in as $k => $o) {
774
-			$in[$k]->deleted = date('Y-m-d H:i:s', time());
773
+		foreach($in as &$o) {
774
+			$o->deleted = date('Y-m-d H:i:s', time());
775 775
 		}				
776 776
 	}
777 777
 			

Loading…
Cancelar
Guardar