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:
Sebastian Grewe 2013-07-25 13:41:13 +02:00
parent 6a0253114f
commit 89c539e6fd

View File

@ -115,7 +115,7 @@ if (empty($aAllBlocks)) {
. $share->share_type
);
if ($setting->getValue('disable_notification') != 1) {
if ($setting->getValue('disable_notifications') != 1) {
// Notify users
$aAccounts = $notification->getNotificationAccountIdByType('new_block');
if (is_array($aAccounts)) {