bug 3136: search by author must be an exact match, now that we have the author listbox

git-svn-id: http://piwigo.org/svn/trunk@29431 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2014-09-08 09:48:55 +00:00
parent 478249d5d0
commit 93aa6cd832
+8 -1
View File
@@ -70,7 +70,14 @@ function get_sql_search_clause($search)
$local_clauses = array();
foreach ($search['fields'][$textfield]['words'] as $word)
{
$local_clauses[] = $textfield." LIKE '%".$word."%'";
if ('author' == $textfield)
{
$local_clauses[] = $textfield."='".$word."'";
}
else
{
$local_clauses[] = $textfield." LIKE '%".$word."%'";
}
}
// adds brackets around where clauses