diff --git a/cronjobs/payouts.php b/cronjobs/payouts.php index 87b5e119..0b01e1e6 100755 --- a/cronjobs/payouts.php +++ b/cronjobs/payouts.php @@ -82,7 +82,7 @@ if ($setting->getValue('disable_manual_payouts') != 1) { $aMailData['amount'] = $dBalance - $config['txfee_manual']; $aMailData['payout_id'] = $aData['id']; if (!$notification->sendNotification($aData['account_id'], 'manual_payout', $aMailData)) - $log->logError('Failed to send notification email to users address: ' . $aMailData['email']); + $log->logError('Failed to send notification email to users address ' . $aMailData['email'] . ' : ' . $notification->getCronError); // Recheck the users balance to make sure it is now 0 $aBalance = $transaction->getBalance($aData['account_id']); if ($aBalance['confirmed'] > 0) { diff --git a/public/include/classes/notification.class.php b/public/include/classes/notification.class.php index 3db6acf8..dd467634 100644 --- a/public/include/classes/notification.class.php +++ b/public/include/classes/notification.class.php @@ -148,7 +148,7 @@ class Notification extends Mail { } } else { $this->setErrorMessage('User disabled ' . $strType . ' notifications'); - return false; + return true; } $this->setErrorMessage('Error sending mail notification'); return false;