diff options
author | Mario <mario@mariovavti.com> | 2021-06-17 07:43:32 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-06-17 07:43:32 +0000 |
commit | 34ca2cddd4d70e08c6351ef0f72ea5e2a6c9b056 (patch) | |
tree | 158636ba0db7d9fe44502147e3a41dbf64793d3d /Zotlabs/Widget/Notes.php | |
parent | fa076efd3bd953863f01bcb474ddb4fc928507e7 (diff) | |
download | volse-hubzilla-34ca2cddd4d70e08c6351ef0f72ea5e2a6c9b056.tar.gz volse-hubzilla-34ca2cddd4d70e08c6351ef0f72ea5e2a6c9b056.tar.bz2 volse-hubzilla-34ca2cddd4d70e08c6351ef0f72ea5e2a6c9b056.zip |
only show notes if the app is enabled
Diffstat (limited to 'Zotlabs/Widget/Notes.php')
-rw-r--r-- | Zotlabs/Widget/Notes.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Zotlabs/Widget/Notes.php b/Zotlabs/Widget/Notes.php index b2c8eda86..05c1a0292 100644 --- a/Zotlabs/Widget/Notes.php +++ b/Zotlabs/Widget/Notes.php @@ -10,6 +10,9 @@ class Notes { if(! local_channel()) return EMPTY_STR; + if(! Apps::system_app_installed(local_channel(), 'Notes')) + return EMPTY_STR; + $text = get_pconfig(local_channel(),'notes','text'); $tpl = get_markup_template('notes.tpl'); |