aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Zotlabs/Widget/Suggestions.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/Zotlabs/Widget/Suggestions.php b/Zotlabs/Widget/Suggestions.php
index b4f384e9d..5fb3d3e8b 100644
--- a/Zotlabs/Widget/Suggestions.php
+++ b/Zotlabs/Widget/Suggestions.php
@@ -2,8 +2,6 @@
namespace Zotlabs\Widget;
-use Zotlabs\Lib\Apps;
-
require_once('include/socgraph.php');
@@ -11,9 +9,9 @@ class Suggestions {
function widget($arr) {
+ if((! local_channel()) || (! feature_enabled(local_channel(),'suggest')))
+ return '';
- if((! local_channel()) || (! Apps::system_app_installed(local_channel(), 'Suggest Channels')))
- return EMPTY_STR;
$r = suggestion_query(local_channel(),get_observer_hash(),0,20);