X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FWidget%2FCalendarExport.php;h=2c21b2f0d0ab7e2d1b2f59194e87e038d27437cb;hb=9c9ebfc7c97016881d9ad2bb3c3b54a5640d2f08;hp=0e85e16c466f6d5cdb073dff04387ee237c61297;hpb=c5cd5694473c1d95f9fe9ae2fa527f12cee5c4f2;p=friendica.git diff --git a/src/Content/Widget/CalendarExport.php b/src/Content/Widget/CalendarExport.php index 0e85e16c46..2c21b2f0d0 100644 --- a/src/Content/Widget/CalendarExport.php +++ b/src/Content/Widget/CalendarExport.php @@ -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.