allow to pass (already quoted) query-parts as filter

This commit is contained in:
Ralf Becker 2005-04-19 13:54:55 +00:00
parent 5a1de96f03
commit 658fe2f4c9

View File

@ -458,7 +458,12 @@ class so_sql
}
foreach($data2db_filter as $col => $val)
{
if ($val !== '') $db_filter[array_search($col,$this->db_cols)] = $val;
if ($val !== '')
{
if (!is_numeric($col)) $col = array_search($col,$this->db_cols);
$db_filter[$col] = $val;
}
}
if ($query)
{