@@ -76,8 +76,8 @@ |
||
76 | 76 | $this->load($params); |
77 | 77 | if ($this->validate()) { |
78 | 78 | |
79 | - $search = mb_strtolower(trim((string)$this->name?$this->name:'')); |
|
80 | - $desc = mb_strtolower(trim((string)$this->description?$this->description:'')); |
|
79 | + $search = mb_strtolower(trim((string)$this->name ? $this->name : '')); |
|
80 | + $desc = mb_strtolower(trim((string)$this->description ? $this->description : '')); |
|
81 | 81 | $ruleName = $this->ruleName; |
82 | 82 | foreach ($items as $name => $item) { |
83 | 83 | $f = (empty($search) || mb_strpos(mb_strtolower($item->name), $search) !== false) && |