From bc12ba68cdad4ba3817f72047b12bd9bf9be3b57 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 17 Mar 2018 10:05:02 -0400 Subject: [PATCH] Fix wrong parameter check in Event::store --- src/Model/Event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ''; } -- 2.39.5