MDL-76559 core: validate_email does not take false either

This commit is contained in:
Andrew Nicols
2022-12-07 21:40:18 +08:00
parent fb7d1b34ef
commit 0f8f164a07
+1 -1
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;
}