diff --git a/examples/simple.php b/examples/simple.php index e1bfd9d..fe51fc2 100644 --- a/examples/simple.php +++ b/examples/simple.php @@ -1,5 +1,8 @@ beforePrintCell[$filter])) { + if (isset($this->beforePrintCell[$filter]) and is_array($this->beforePrintCell[$filter])) { if (isset($this->beforePrintCell[$filter]['filter'])) { return true; } @@ -268,9 +268,9 @@ class ListJsonTable extends JasonTable if ($this->issetFilter($key)){ $filter = $this->getCurrentFilter($key); $class = new $filter['class']([ - 'param' => $filter['param'], + 'param' => $filter['param'] ?? '', 'name' => $key, - 'value' => $filter['value'] + 'value' => $filter['value'] ?? '', ]); $this->html .= $class->fetch(); }