aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_search.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2011-08-22 19:14:11 +0000
committerrvelices <rv-github@modusoptimus.com>2011-08-22 19:14:11 +0000
commitab8deea23b898b94c65e2eec066441f2b4e42109 (patch)
tree735239fc021d81129599bbfb9d4bd6da70068b34 /include/functions_search.inc.php
parent58b18bff0f08daa482c7949e1487ffccf00463a5 (diff)
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
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 %_