fixed warning introduced by strstr --> strpos conversation

This commit is contained in:
Ralf Becker 2006-12-07 19:05:40 +00:00
parent 21f473137e
commit 9e5ba08ecb

View File

@ -514,7 +514,8 @@ class so_sql
{
$db_col = $col;
}
if ($wildcard || strpos($criteria[$col],'*')!==false || strpos($criteria[$col],'?')!==false || $criteria[$col]{0} == '!')
if ($wildcard || $criteria[$col]{0} == '!' ||
is_string($criteria[$col]) && (strpos($criteria[$col],'*')!==false || strpos($criteria[$col],'?')!==false))
{
$cmp_op = ' LIKE ';
if ($criteria[$col]{0} == '!')