From 75aa831b32ec55b635fdbb3631b10f3cd0248aca Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 7 Jul 2018 23:31:30 +0000 Subject: [PATCH] Better not check too strict --- src/Model/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index fb9fe984d..3086a869b 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -107,7 +107,7 @@ class Item extends BaseObject */ private static function indexToActivity($index) { - if (!is_int($index) || !array_key_exists($index, self::ACTIVITIES)) { + if (is_null($index) || !array_key_exists($index, self::ACTIVITIES)) { return ''; }