Merge branch 'MDL-76559-master' of https://github.com/andrewnicols/moodle

This commit is contained in:
Jun Pataleta 2022-12-07 22:41:20 +08:00
commit 5935cd22c1

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;
}