aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_search.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2011-08-22 19:16:17 +0000
committerrvelices <rv-github@modusoptimus.com>2011-08-22 19:16:17 +0000
commit4ebc3b85b7f616464aa4bef0899987911438376b (patch)
tree42bf088183b46084455599f2e55e9340bbeb04cd /include/functions_search.inc.php
parenta37695a5578219072d96e735be9ef1edb9b4f477 (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
Diffstat (limited to 'include/functions_search.inc.php')
-rw-r--r--include/functions_search.inc.php2
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 %_