Always understand english search operators

This commit is contained in:
Nathan Gray 2010-05-25 19:04:40 +00:00
parent 99106024c4
commit 2760915be4

View File

@ -1089,15 +1089,15 @@ class so_sql
while($token)
{
if($token == strtoupper(lang('AND')))
if($token == strtoupper(lang('AND')) || $token == 'AND')
{
$token = '+'.strtok($break);
}
elseif ($token == strtoupper(lang('OR')))
elseif ($token == strtoupper(lang('OR')) || $token == 'OR')
{
continue;
}
elseif ($token == strtoupper(lang('NOT')))
elseif ($token == strtoupper(lang('NOT')) || $token == 'NOT')
{
$token = '-'.strtok($break);
}