MDL-72984 admin: make support email setting mandatory

This commit is contained in:
Simey Lameze
2021-12-20 13:22:35 +08:00
parent 58a729f088
commit eadf157068
10 changed files with 50 additions and 9 deletions
+1 -1
View File
@@ -326,7 +326,7 @@ class api {
if (empty($section) or $section == 'supportcontact') {
$settings->supportname = $CFG->supportname;
$settings->supportemail = $CFG->supportemail;
$settings->supportemail = $CFG->supportemail ?? null;
$settings->supportpage = $CFG->supportpage;
}