]> git.mxchange.org Git - friendica.git/commitdiff
Fix wrong parameter check in Event::store
authorHypolite Petovan <mrpetovan@gmail.com>
Sat, 17 Mar 2018 14:05:02 +0000 (10:05 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Fri, 23 Mar 2018 10:34:21 +0000 (06:34 -0400)
src/Model/Event.php

index df6a1fa0ef4e3147dd78adb71fc6576e8ec900a7..2626f64496dd136ef0b291abd4085e0e1be97e09 100644 (file)
@@ -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 '';
                }