diff options
author | rvelices <rv-github@modusoptimus.com> | 2011-08-22 19:16:17 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2011-08-22 19:16:17 +0000 |
commit | 4ebc3b85b7f616464aa4bef0899987911438376b (patch) | |
tree | 42bf088183b46084455599f2e55e9340bbeb04cd | |
parent | a37695a5578219072d96e735be9ef1edb9b4f477 (diff) |
merge r11979 from trunk - bug fix quick search - file name was not correctly search (typo error)
git-svn-id: http://piwigo.org/svn/branches/2.2@11980 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r-- | include/functions_search.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions_search.inc.php b/include/functions_search.inc.php index b25d41050..630276e51 100644 --- a/include/functions_search.inc.php +++ b/include/functions_search.inc.php @@ -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 %_ |