From: Michael <heluecht@pirati.ca>
Date: Sat, 7 Jul 2018 23:31:30 +0000 (+0000)
Subject: Better not check too strict
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=75aa831b32ec55b635fdbb3631b10f3cd0248aca;p=friendica.git

Better not check too strict
---

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