From 2a832e57581df97e37ddb9350059ae049c9219d9 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 23 Mar 2015 19:18:00 +0100 Subject: [PATCH] Fixed the querys with the string '0'. --- pandora_console/include/db/mysql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/db/mysql.php b/pandora_console/include/db/mysql.php index fc1e3804d8..fd904bb0ad 100644 --- a/pandora_console/include/db/mysql.php +++ b/pandora_console/include/db/mysql.php @@ -548,7 +548,7 @@ function mysql_db_format_array_where_clause_sql ($values, $join = 'AND', $prefix $query .= sprintf ('%s IN ("%s")', $field, implode ('", "', $value)); } else { - if (empty($value)) { + if ($value === "") { //Search empty string $query .= sprintf ("%s = ''", $field); }