From 68c8faa8cb6b2c8e374bea1321657832edefb5dc Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Fri, 18 Feb 2011 07:33:18 +0100 Subject: [PATCH] - don't use templated errors in cron, - fix usage of wrong variable Signed-off-by: Michael Kaufmann (d00p) --- scripts/jobs/cron_usage_report.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/jobs/cron_usage_report.php b/scripts/jobs/cron_usage_report.php index 51a20e48..0d2acbda 100644 --- a/scripts/jobs/cron_usage_report.php +++ b/scripts/jobs/cron_usage_report.php @@ -101,8 +101,8 @@ while($row = $db->fetch_array($result)) if($_mailerror) { - $cronlog->logAction(CRON_ACTION, LOG_ERR, 'Error sending mail: ' . $_mailerror); - standard_error('errorsendingmail', $row['email']); + $cronlog->logAction(CRON_ACTION, LOG_ERR, 'Error sending mail: ' . $mailerr_msg); + echo 'Error sending mail: ' . $mailerr_msg . "\n"; } $mail->ClearAddresses(); @@ -182,7 +182,7 @@ while($row = $db->fetch_array($result)) if ($_mailerror) { $cronlog->logAction(CRON_ACTION, LOG_ERR, "Error sending mail: " . $mailerr_msg); - standard_error('errorsendingmail', $row["email"]); + echo "Error sending mail: " . $mailerr_msg . "\n"; } $mail->ClearAddresses(); @@ -231,7 +231,7 @@ while($row = $db->fetch_array($result)) if ($_mailerror) { $cronlog->logAction(CRON_ACTION, LOG_ERR, 'Error sending mail: ' . $mailerr_msg); - standard_error('errorsendingmail', $row['email']); + echo 'Error sending mail: ' . $mailerr_msg . "\n"; } $mail->ClearAddresses();