mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-30 13:37:45 +00:00
ensure $logicalmode in search() is either 'OR' or 'AND'
This commit is contained in:
parent
31290fbcf7
commit
a39355f2ed
|
@ -1454,6 +1454,10 @@ class SeedDMS_Core_DMS {
|
|||
${$paramname} = isset($query[$paramname]) ? $query[$paramname] : '';
|
||||
$query = isset($query['query']) ? $query['query'] : '';
|
||||
}
|
||||
/* Ensure $logicalmode has a valid value */
|
||||
if($logicalmode != 'OR')
|
||||
$logicalmode = 'AND';
|
||||
|
||||
// Split the search string into constituent keywords.
|
||||
$tkeys=array();
|
||||
if (strlen($query)>0) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user