Fixes log_userupdate

This commit is contained in:
nikolark committed 2014-06-30 20:06:33 +02:00
1 parent a7e614a3d5
commit 2b9ca26016
1 file changed
+3 -2
+3 -2
View File
@@ -1744,7 +1744,7 @@ function redirect($path) {
}
function log_userupdate($updated, $comment, $updated_by=NULL) {
global $conn;
$conn = db_connect();
if( $updated_by == NULL) {
$updated_by = $updated;
@@ -1757,9 +1757,10 @@ function log_userupdate($updated, $comment, $updated_by=NULL) {
'comment' => $comment,
'user_id_updated_by' => $updated_by
);
$res = $conn->autoExecute("din_userphonenumber", $data, DB_AUTOQUERY_INSERT);
$res = $conn->autoExecute("din_userupdate", $data, DB_AUTOQUERY_INSERT);
if (DB::isError($res)) {
var_dump($res->toString());
return false;
}