From: Michael Date: Sat, 7 Jul 2018 23:19:28 +0000 (+0000) Subject: Don't use isset X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4673560c55469ed167e0ed1ceb6875ecc4d89b20;p=friendica.git Don't use isset --- 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 ''; }