From 8879776d6436ed5257648a1873ddaa9486b25070 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sun, 23 Oct 2022 14:02:19 +0200 Subject: fix php warnings --- Zotlabs/Widget/Photo_albums.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Zotlabs/Widget') diff --git a/Zotlabs/Widget/Photo_albums.php b/Zotlabs/Widget/Photo_albums.php index 2ce916048..d0004e68d 100644 --- a/Zotlabs/Widget/Photo_albums.php +++ b/Zotlabs/Widget/Photo_albums.php @@ -14,8 +14,9 @@ class Photo_albums { function widget($arr) { - if(! \App::$profile['profile_uid']) + if (!(isset(\App::$profile['profile_uid']) && \App::$profile['profile_uid'])) { return ''; + } $channelx = channelx_by_n(\App::$profile['profile_uid']); -- cgit v1.2.3