]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: Prevent "Uncaught TypeError: Argument 1 passed to Friendica\Model\Event:...
authorMichael <heluecht@pirati.ca>
Sun, 25 Mar 2018 18:56:35 +0000 (18:56 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 25 Mar 2018 18:56:35 +0000 (18:56 +0000)
src/Model/Event.php

index 87c8b239bfc9d25313aefe556a892d8450a9bc4f..9fa55521bea86058271c08c8d51fe8f35c205658 100644 (file)
@@ -737,7 +737,7 @@ class Event extends BaseObject
 
                $events = dba::select('event', $fields, $conditions);
                if (DBM::is_result($events)) {
-                       $return = $events;
+                       $return = dba::inArray($events);
                }
 
                return $return;