diff options
author | Mario <mario@mariovavti.com> | 2022-07-18 17:52:00 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-07-18 17:52:00 +0000 |
commit | c301baafb56b7e812d3e09a468f22909746cd2a1 (patch) | |
tree | cc7df8f80d683fd782236bbd33853624b6868dd1 /Zotlabs | |
parent | 4282672201d82a971f233f4b61cf54554faff300 (diff) | |
download | volse-hubzilla-c301baafb56b7e812d3e09a468f22909746cd2a1.tar.gz volse-hubzilla-c301baafb56b7e812d3e09a468f22909746cd2a1.tar.bz2 volse-hubzilla-c301baafb56b7e812d3e09a468f22909746cd2a1.zip |
check if the webpages app is installed
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Widget/Channel_activities.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Zotlabs/Widget/Channel_activities.php b/Zotlabs/Widget/Channel_activities.php index a95a3f083..d12d80a8c 100644 --- a/Zotlabs/Widget/Channel_activities.php +++ b/Zotlabs/Widget/Channel_activities.php @@ -8,6 +8,7 @@ namespace Zotlabs\Widget; use App; +use Zotlabs\Lib\Apps; class Channel_activities { @@ -134,6 +135,10 @@ class Channel_activities { private static function get_webpages_activity() { + if(!Apps::system_app_installed(self::$uid, 'Webpages')) { + return; + } + $r = q("SELECT * FROM iconfig LEFT JOIN item ON iconfig.iid = item.id WHERE item.uid = %d AND iconfig.cat = 'system' AND iconfig.k = 'WEBPAGE' AND item_type = %d ORDER BY item.edited DESC LIMIT %d", |