Ignore:
Timestamp:
Jan 17, 2014, 1:50:14 PM (10 years ago)
Author:
plg
Message:

bug 3020 and bug 3021 fixed: additionnal checks in search inputs

File:
1 edited

Legend:

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

    r26649 r26825  
    114114      );
    115115
     116    // make sure the "mode" is either OR or AND
     117    if ($search['fields']['allwords']['mode'] != 'AND' and $search['fields']['allwords']['mode'] != 'OR')
     118    {
     119      $search['fields']['allwords']['mode'] = 'AND';
     120    }
     121
    116122    $clauses[] = "\n         ".
    117123      implode(
Note: See TracChangeset for help on using the changeset viewer.