Handle op not being specified

pull/3713/head
Isaac Connor 2023-05-23 15:51:35 -04:00
parent 9fdb3d1876
commit 20b7624da0
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class FilterTerm {
$this->attr = isset($term['attr']) ? $term['attr'] : '';
$this->attr = preg_replace('/[^A-Za-z0-9\.]/', '', $this->attr, -1, $count);
if ($count) Error("Invalid characters removed from filter attr ${term['attr']}, possible hacking attempt.");
$this->op = $term['op'];
$this->op = isset($term['op']) ? $term['op'] : '=';
$this->val = isset($term['val']) ? $term['val'] : '';
if (is_array($this->val)) $this->val = implode(',', $this->val);
if ( isset($term['cnj']) ) {