From 4673560c55469ed167e0ed1ceb6875ecc4d89b20 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 7 Jul 2018 23:19:28 +0000 Subject: [PATCH] Don't use isset --- 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 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 ''; } -- 2.39.5