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);