diff options
author | Mario <mario@mariovavti.com> | 2019-04-01 12:42:07 +0200 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-04-01 12:42:07 +0200 |
commit | 2bdcd436bb3b8ed3090a500550bf93d30d15aa7f (patch) | |
tree | 44182c8a92515986e2ca704ba4c4bb2d4e1be96a /Zotlabs/Widget/Suggestions.php | |
parent | b384b275466655659c063253e82962c3fe524f6f (diff) | |
parent | a1bea7d7cc33cfaec3114e7cb97093ec647a026a (diff) | |
download | volse-hubzilla-2bdcd436bb3b8ed3090a500550bf93d30d15aa7f.tar.gz volse-hubzilla-2bdcd436bb3b8ed3090a500550bf93d30d15aa7f.tar.bz2 volse-hubzilla-2bdcd436bb3b8ed3090a500550bf93d30d15aa7f.zip |
Merge branch 'dev' into 'dev'
check service class limits when syncing files
See merge request hubzilla/core!1578
Diffstat (limited to 'Zotlabs/Widget/Suggestions.php')
-rw-r--r-- | Zotlabs/Widget/Suggestions.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Zotlabs/Widget/Suggestions.php b/Zotlabs/Widget/Suggestions.php index 5fb3d3e8b..b4f384e9d 100644 --- a/Zotlabs/Widget/Suggestions.php +++ b/Zotlabs/Widget/Suggestions.php @@ -2,6 +2,8 @@ namespace Zotlabs\Widget; +use Zotlabs\Lib\Apps; + require_once('include/socgraph.php'); @@ -9,9 +11,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); |