aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2024-09-22 17:24:28 +0200
committerMario Vavti <mario@mariovavti.com>2024-09-22 17:24:28 +0200
commit3733a80c1de0e3bf69b91f1dc7ee217fd3e29fe5 (patch)
treece80be6c736734ad960566434ebebd7b0d861371 /Zotlabs/Widget
parent220571d2a99b32ab4b73135400564812e13f6acf (diff)
downloadvolse-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.php9
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');