summaryrefslogtreecommitdiffstats
path: root/app/classes
diff options
context:
space:
mode:
authorRomain d'Alverny <rdalverny@gmail.com>2022-01-10 22:20:53 +0100
committerRomain d'Alverny <rdalverny@gmail.com>2022-01-10 22:20:53 +0100
commit81e974e61ab010e12e60174be4e07f9bdeb933f9 (patch)
tree527230df8e8ceaa49a8767a12239a6bbbe713f4f /app/classes
parentee9c408f719491ecb7947d83994bed1803a988e8 (diff)
downloadplanet-81e974e61ab010e12e60174be4e07f9bdeb933f9.tar
planet-81e974e61ab010e12e60174be4e07f9bdeb933f9.tar.gz
planet-81e974e61ab010e12e60174be4e07f9bdeb933f9.tar.bz2
planet-81e974e61ab010e12e60174be4e07f9bdeb933f9.tar.xz
planet-81e974e61ab010e12e60174be4e07f9bdeb933f9.zip
Require PHP 7.2
moonmoon now supports PHP 7.2 to 8.1.
Diffstat (limited to 'app/classes')
-rw-r--r--app/classes/Planet.php6
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 =