]> git.mxchange.org Git - friendica.git/commitdiff
Don't use isset
authorMichael <heluecht@pirati.ca>
Sat, 7 Jul 2018 23:19:28 +0000 (23:19 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 7 Jul 2018 23:19:28 +0000 (23:19 +0000)
src/Model/Item.php

index 3738d396f05f240ef6b40cb1beff8f8b35882efe..fb9fe984d33c0d902a8a81e47ca0e97490c268eb 100644 (file)
@@ -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 '';
                }