"removed accidently commited 2. patch"

This commit is contained in:
Ralf Becker 2008-06-19 16:07:57 +00:00
parent e5f5feddf1
commit 23c473690e

View File

@ -665,7 +665,7 @@ class so_sql
if ($criteria[$col][0] == '!') if ($criteria[$col][0] == '!')
{ {
$cmp_op = ' NOT'.$cmp_op; $cmp_op = ' NOT'.$cmp_op;
$criteria[$col] = '('.substr($criteria[$col],1).' OR '.$criteria[$col].' IS NULL)'; $criteria[$col] = substr($criteria[$col],1);
$negate = true; $negate = true;
} }
$query[] = ($negate ? ' ('.$db_col.' IS NULL OR ' : '').$db_col.$cmp_op.$this->db->quote($wildcard.str_replace(array('%','_','*','?'),array('\\%','\\_','%','_'),$criteria[$col]).$wildcard).($negate ? ') ' : ''); $query[] = ($negate ? ' ('.$db_col.' IS NULL OR ' : '').$db_col.$cmp_op.$this->db->quote($wildcard.str_replace(array('%','_','*','?'),array('\\%','\\_','%','_'),$criteria[$col]).$wildcard).($negate ? ') ' : '');