diff --git a/etemplate/inc/class.so_sql.inc.php b/etemplate/inc/class.so_sql.inc.php index caa20fe316..b67db83b6d 100644 --- a/etemplate/inc/class.so_sql.inc.php +++ b/etemplate/inc/class.so_sql.inc.php @@ -515,11 +515,15 @@ class so_sql if ($val !== '') { // check if a db-internal name conversation necessary - if (!is_numeric($col) && ($c = array_search($col,$this->db_cols))) + if (!is_int($col) && ($c = array_search($col,$this->db_cols))) { $col = $c; } - if ($val === "!''") + if(is_int($col)) + { + $db_filter[] = $val; + } + elseif ($val === "!''") { $db_filter[] = $col." != ''"; }