]> git.mxchange.org Git - friendica.git/commitdiff
Better not check too strict
authorMichael <heluecht@pirati.ca>
Sat, 7 Jul 2018 23:31:30 +0000 (23:31 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 7 Jul 2018 23:31:30 +0000 (23:31 +0000)
src/Model/Item.php

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