Handle op not being specified
parent
9fdb3d1876
commit
20b7624da0
|
@ -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']) ) {
|
||||
|
|
Loading…
Reference in New Issue