aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Profile.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Widget/Profile.php')
-rw-r--r--Zotlabs/Widget/Profile.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/Zotlabs/Widget/Profile.php b/Zotlabs/Widget/Profile.php
index 8bd624c0f..0e5444a56 100644
--- a/Zotlabs/Widget/Profile.php
+++ b/Zotlabs/Widget/Profile.php
@@ -2,12 +2,16 @@
namespace Zotlabs\Widget;
+use App;
class Profile {
-
function widget($args) {
+ if(!App::$profile['profile_uid']) {
+ return;
+ }
+
$block = observer_prohibited();
- return profile_sidebar(\App::$profile, $block, true, false);
- }
+ return profile_sidebar(App::$profile, $block, true, false);
+ }
}