Merge branch 'MDL-76559-401' of https://github.com/andrewnicols/moodle into MOODLE_401_STABLE

This commit is contained in:
Jun Pataleta 2022-12-07 22:41:07 +08:00
commit 6661a3eb45

View File

@ -1109,7 +1109,7 @@ function page_get_doc_link_path(moodle_page $page) {
function validate_email($address) {
global $CFG;
if ($address === null || $address === '') {
if ($address === null || $address === false || $address === '') {
return false;
}