MDL-13483 found two more native php mail() commands; merged from MOODLE_19_STABLE

This commit is contained in:
skodak 2008-02-25 14:05:06 +00:00
parent 42f50aec59
commit 585385278c
2 changed files with 4 additions and 2 deletions

View File

@ -1890,7 +1890,9 @@ function add_to_log($courseid, $module, $action, $url='', $info='', $cm=0, $user
// email_to_user is not usable because email_to_user tries to write to the logs table, and this will get caught
// in an infinite loop, if disk is full
mail($CFG->supportemail, $subject, $message);
if (empty($CFG->noemailever)) {
mail($CFG->supportemail, $subject, $message);
}
}
if (!$result and debugging()) {

View File

@ -155,7 +155,7 @@ global $HTTPSPAGEREQUIRED;
echo '</td></tr></table>';
echo '</body></html>';
if (!empty($CFG->emailconnectionerrorsto)) {
if (empty($CFG->noemailever) and !empty($CFG->emailconnectionerrorsto)) {
mail($CFG->emailconnectionerrorsto,
'WARNING: Database connection error: '.$CFG->wwwroot,
'Connection error: '.$CFG->wwwroot);