]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Widget/CalendarExport.php
Merge pull request #6013 from JonnyTischbein/issue_comment_media_link_prompt
[friendica.git] / src / Content / Widget / CalendarExport.php
index 0e85e16c466f6d5cdb073dff04387ee237c61297..2c21b2f0d0ab7e2d1b2f59194e87e038d27437cb 100644 (file)
@@ -27,6 +27,10 @@ class CalendarExport
        public static function getHTML() {
                $a = get_app();
 
+               if (empty($a->data['user'])) {
+                       return;
+               }
+
                $owner_uid = $a->data['user']['uid'];
 
                // The permission testing is a little bit tricky because we have to respect many cases.