diff --git a/src/Model/Item.php b/src/Model/Item.php index 3738d396f0..fb9fe984d3 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 (!isset(self::ACTIVITIES[$index])) { + if (!is_int($index) || !array_key_exists($index, self::ACTIVITIES)) { return ''; }