]> git.mxchange.org Git - friendica-addons.git/commitdiff
Superblock: Fixes notice and fatal error
authorMichael <heluecht@pirati.ca>
Sat, 19 Sep 2020 02:51:05 +0000 (02:51 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 19 Sep 2020 02:51:05 +0000 (02:51 +0000)
superblock/superblock.php

index ad2e8c14e0c5e4e269ef494df4704ae597001ad6..7bf2bc4ce487a3af31716787e1d87d96bb37b7ef 100644 (file)
@@ -63,6 +63,9 @@ function superblock_addon_settings_post(&$a, &$b)
 }
 
 function superblock_enotify_store(&$a,&$b) {
+       if (empty($b['uid'])) {
+               return;
+       }
 
        $words = DI::pConfig()->get($b['uid'], 'system', 'blocked');
        if ($words) {