From: Hypolite Petovan Date: Sat, 17 Mar 2018 14:05:02 +0000 (-0400) Subject: Fix wrong parameter check in Event::store X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bc12ba68cdad4ba3817f72047b12bd9bf9be3b57;p=friendica.git Fix wrong parameter check in Event::store --- diff --git a/src/Model/Event.php b/src/Model/Event.php index df6a1fa0ef..2626f64496 100644 --- a/src/Model/Event.php +++ b/src/Model/Event.php @@ -29,7 +29,7 @@ class Event extends BaseObject public static function getHTML(array $event, $simple = false) { - if (!is_array($event) || !!count($event)) { + if (empty($event)) { return ''; }