From c301baafb56b7e812d3e09a468f22909746cd2a1 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 18 Jul 2022 17:52:00 +0000 Subject: check if the webpages app is installed --- Zotlabs/Widget/Channel_activities.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Zotlabs') 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", -- cgit v1.2.3