From 0b0e566eae51a61249fa162cc5b00a82a4af52e2 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Wed, 14 Apr 2010 16:11:49 +0000 Subject: [PATCH] 2010-04-14 Miguel de Dios * include/functions_db.php: fixed bug in the function "format_array_to_update_sql" when the field yet escaped. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2565 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 ++++++- pandora_console/include/functions_db.php | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 33a0107006..a184e9cd1a 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,8 +1,13 @@ +2010-04-14 Miguel de Dios + + * include/functions_db.php: fixed bug in the function + "format_array_to_update_sql" when the field yet escaped. + 2010-04-14 Sergio Martin * godmode/users/user_list.php: fixed bug 2987177. Wrong index was associated with the delete icon in the users list. - + 2010-04-14 Miguel de Dios * include/functions_db.php: fixed bug in the function "get_db_value_filter" diff --git a/pandora_console/include/functions_db.php b/pandora_console/include/functions_db.php index 116e07e49c..2ea6f76890 100644 --- a/pandora_console/include/functions_db.php +++ b/pandora_console/include/functions_db.php @@ -2196,6 +2196,9 @@ function format_array_to_update_sql ($values) { array_push ($fields, $value); continue; } + else if ($field[0] == "`") { + $field = str_replace('`', '', $field); + } if ($value === NULL) { $sql = sprintf ("`%s` = NULL", $field);