mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
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:
@@ -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 %_
|
||||
|
||||
Reference in New Issue
Block a user