diff options
author | Mario Vavti <mario@mariovavti.com> | 2024-09-22 17:24:28 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2024-09-22 17:24:28 +0200 |
commit | 3733a80c1de0e3bf69b91f1dc7ee217fd3e29fe5 (patch) | |
tree | ce80be6c736734ad960566434ebebd7b0d861371 /Zotlabs/Widget | |
parent | 220571d2a99b32ab4b73135400564812e13f6acf (diff) | |
download | volse-hubzilla-3733a80c1de0e3bf69b91f1dc7ee217fd3e29fe5.tar.gz volse-hubzilla-3733a80c1de0e3bf69b91f1dc7ee217fd3e29fe5.tar.bz2 volse-hubzilla-3733a80c1de0e3bf69b91f1dc7ee217fd3e29fe5.zip |
notes: make sure we set App::$profile_uid in the module - issue #1865 and minor code cleanup
Diffstat (limited to 'Zotlabs/Widget')
-rw-r--r-- | Zotlabs/Widget/Notes.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Zotlabs/Widget/Notes.php b/Zotlabs/Widget/Notes.php index 836159edd..be4ec64a6 100644 --- a/Zotlabs/Widget/Notes.php +++ b/Zotlabs/Widget/Notes.php @@ -16,14 +16,17 @@ use Zotlabs\Lib\Apps; class Notes { function widget($arr) { - if(! local_channel()) + if(!local_channel()) { return EMPTY_STR; + } - if(App::$profile_uid !== local_channel()) + if (App::$profile_uid !== local_channel()) { return EMPTY_STR; + } - if(! Apps::system_app_installed(local_channel(), 'Notes')) + if(!Apps::system_app_installed(local_channel(), 'Notes')) { return EMPTY_STR; + } $text = get_pconfig(local_channel(),'notes','text'); |