Fix subject of database error log email sent during cron maintenance

This commit is contained in:
Chris Morgan
2007-06-16 03:35:05 +00:00
committed by WineHQ
parent dd5edba2ed
commit 00ccd7b18b
2 changed files with 4 additions and 3 deletions

View File

@@ -251,9 +251,10 @@ function orphanSessionListCheck()
$hResult = query_parameters($sQuery, SESSION_DAYS_TO_EXPIRE + 2); $hResult = query_parameters($sQuery, SESSION_DAYS_TO_EXPIRE + 2);
} }
// report the database error log entries to the mailing list
function reportErrorLogEntries() function reportErrorLogEntries()
{ {
error_log::mail_admins_error_log(); error_log::mail_admins_error_log($sEmailSubject);
error_log::flush(); error_log::flush();
} }

View File

@@ -60,9 +60,9 @@ class error_log
else return false; else return false;
} }
function mail_admins_error_log() function mail_admins_error_log($sSubject = "")
{ {
$sSubject = "Appdb error log\r\n"; $sSubject .= "Database Error log\r\n";
$sEmail = User::get_notify_email_address_list(null, null); /* get list admins */ $sEmail = User::get_notify_email_address_list(null, null); /* get list admins */
$sQuery = "SELECT * from error_log WHERE deleted='0' ORDER BY submitTime"; $sQuery = "SELECT * from error_log WHERE deleted='0' ORDER BY submitTime";