diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/classes/Planet.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/classes/Planet.php b/app/classes/Planet.php index b146eaf..5c6d7cf 100644 --- a/app/classes/Planet.php +++ b/app/classes/Planet.php @@ -241,10 +241,10 @@ class Planet */ public function _filterItemsByCategory($items, $categories = null) { - $categories = trim($categories); - - if (empty($categories)) + if (is_null($categories) or empty(trim($categories))) + { return $items; + } $categories = array_map('trim', explode(',', strtolower($categories))); $cb_category_filter = |