From 9fc381f4e8712fec0e7b67c0f4e7af0980261e16 Mon Sep 17 00:00:00 2001 From: thomascube Date: Sun, 11 Dec 2005 23:19:48 +0000 Subject: Check if log files are writeable --- program/steps/mail/sendmail.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/steps') diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc index 8ec30b0a7..6a3b51123 100644 --- a/program/steps/mail/sendmail.inc +++ b/program/steps/mail/sendmail.inc @@ -283,7 +283,7 @@ if ($CONFIG['smtp_log']) $mailto, $msg_subject); - if ($fp = fopen($CONFIG['log_dir'].'/sendmail', 'a')) + if ($fp = @fopen($CONFIG['log_dir'].'/sendmail', 'a')) { fwrite($fp, $log_entry); fclose($fp); -- cgit v1.2.3