mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user