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:
parent
58b18bff0f
commit
ab8deea23b
1 changed files with 1 additions and 1 deletions
|
@ -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 %_
|
||||
|
|
Loading…
Reference in a new issue