so_sql::search() was loosing filters, sql-strings (int keys) where writen with that key, instead with []

This commit is contained in:
Ralf Becker 2006-06-17 18:30:38 +00:00
parent 5dc4617462
commit 07df005b44

View File

@ -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." != ''";
}