aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions_search.inc.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/functions_search.inc.php b/include/functions_search.inc.php
index 1af36d3af..28682215e 100644
--- a/include/functions_search.inc.php
+++ b/include/functions_search.inc.php
@@ -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