bug fix quick search - file name was not correctly search (typo error)

git-svn-id: http://piwigo.org/svn/trunk@11979 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices 2011-08-22 19:14:11 +00:00
parent 58b18bff0f
commit ab8deea23b

View file

@ -399,7 +399,7 @@ function get_qsearch_like_clause($tokens, $token_modifiers, $field)
$token = trim($tokens[$i], '%');
if (strstr($token_modifiers[$i], '-')!==false)
continue;
if ( strlen($token==0) )
if ( strlen($token)==0 )
continue;
$token = addslashes($token);
$token = str_replace( array('%','_'), array('\\%','\\_'), $token); // escape LIKE specials %_