Merge pull request #1019 from annando/superblock-fatal

Superblock: Fixes notice and fatal error
pull/1021/head
Tobias Diekershoff 2020-09-19 08:01:11 +02:00 committed by GitHub
commit a2328af757
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

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