Ignore:
Timestamp:
Mar 25, 2014, 1:53:10 PM (10 years ago)
Author:
plg
Message:

merge r26825 from trunk to branch 2.5

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/include/functions_search.inc.php

    r19703 r27933  
    118118      );
    119119
    120     array_push(
    121       $clauses,
    122       "\n         ".
     120    // make sure the "mode" is either OR or AND
     121    if ($search['fields']['allwords']['mode'] != 'AND' and $search['fields']['allwords']['mode'] != 'OR')
     122    {
     123      $search['fields']['allwords']['mode'] = 'AND';
     124    }
     125
     126    $clauses[] = "\n         ".
    123127      implode(
    124128        "\n         ".
Note: See TracChangeset for help on using the changeset viewer.