X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=src%2FModel%2FEvent.php;h=3ce86017ba99028203aeb946a09c1a70bbe530cb;hb=08da1ed038c9b193ded0ca70b3b1c1085bb7e90a;hp=cd08c314afa5ffe521a3fab5305f4037499acf59;hpb=7f2dc4060119f49eaaefb01ce3f32907e4c7761d;p=friendica.git diff --git a/src/Model/Event.php b/src/Model/Event.php index cd08c314af..3ce86017ba 100644 --- a/src/Model/Event.php +++ b/src/Model/Event.php @@ -644,15 +644,17 @@ class Event extends BaseObject */ private static function formatListForExport(array $events, $format) { + $o = ''; + if (!count($events)) { - return ''; + return $o; } switch ($format) { // Format the exported data as a CSV file. case "csv": header("Content-type: text/csv"); - $o = '"Subject", "Start Date", "Start Time", "Description", "End Date", "End Time", "Location"' . PHP_EOL; + $o .= '"Subject", "Start Date", "Start Time", "Description", "End Date", "End Time", "Location"' . PHP_EOL; foreach ($events as $event) { /// @todo The time / date entries don't include any information about the