Changeset 29431


Ignore:
Timestamp:
09/08/14 11:48:55 (5 years ago)
Author:
plg
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_search.inc.php

    r29022 r29431  
    7171      foreach ($search['fields'][$textfield]['words'] as $word) 
    7272      { 
    73         $local_clauses[] = $textfield." LIKE '%".$word."%'"; 
     73        if ('author' == $textfield) 
     74        { 
     75          $local_clauses[] = $textfield."='".$word."'"; 
     76        } 
     77        else 
     78        { 
     79          $local_clauses[] = $textfield." LIKE '%".$word."%'"; 
     80        } 
    7481      } 
    7582 
Note: See TracChangeset for help on using the changeset viewer.