mirror of
https://github.com/friendica/friendica
synced 2024-12-23 13:20:21 +00:00
Better not check too strict
This commit is contained in:
parent
4673560c55
commit
75aa831b32
1 changed files with 1 additions and 1 deletions
|
@ -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 '';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue