2010-04-14 Miguel de Dios <miguel.dedios@artica.es>

* 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
This commit is contained in:
mdtrooper 2010-04-14 16:11:49 +00:00
parent a4c6b43b29
commit b38ab821f2
2 changed files with 9 additions and 1 deletions

View File

@ -1,8 +1,13 @@
2010-04-14 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: fixed bug in the function
"format_array_to_update_sql" when the field yet escaped.
2010-04-14 Sergio Martin <sergio.martin@artica.es>
* 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 <miguel.dedios@artica.es>
* include/functions_db.php: fixed bug in the function "get_db_value_filter"

View File

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