From: Michael Date: Sun, 25 Mar 2018 18:56:35 +0000 (+0000) Subject: Bugfix: Prevent "Uncaught TypeError: Argument 1 passed to Friendica\Model\Event:... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dece06c571d6dda5bd732e14e6bf27a8bd546779;p=friendica.git Bugfix: Prevent "Uncaught TypeError: Argument 1 passed to Friendica\Model\Event::formatListForExport() must be of the type array, object given" --- diff --git a/src/Model/Event.php b/src/Model/Event.php index 87c8b239bf..9fa55521be 100644 --- a/src/Model/Event.php +++ b/src/Model/Event.php @@ -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;