aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-07-18 17:52:00 +0000
committerMario <mario@mariovavti.com>2022-07-18 17:52:00 +0000
commitc301baafb56b7e812d3e09a468f22909746cd2a1 (patch)
treecc7df8f80d683fd782236bbd33853624b6868dd1 /Zotlabs
parent4282672201d82a971f233f4b61cf54554faff300 (diff)
downloadvolse-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.php5
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",