Fixing notifications for findblocks cron
If disabled, findblocks would still send out notifications. Thanks @feeleep75 for the heads up. Fixes #522
This commit is contained in:
parent
6a0253114f
commit
89c539e6fd
@ -115,7 +115,7 @@ if (empty($aAllBlocks)) {
|
|||||||
. $share->share_type
|
. $share->share_type
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($setting->getValue('disable_notification') != 1) {
|
if ($setting->getValue('disable_notifications') != 1) {
|
||||||
// Notify users
|
// Notify users
|
||||||
$aAccounts = $notification->getNotificationAccountIdByType('new_block');
|
$aAccounts = $notification->getNotificationAccountIdByType('new_block');
|
||||||
if (is_array($aAccounts)) {
|
if (is_array($aAccounts)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user