mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-13483 found two more native php mail() commands; merged from MOODLE_19_STABLE
This commit is contained in:
parent
42f50aec59
commit
585385278c
@ -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()) {
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user