mirror of
https://github.com/moodle/moodle.git
synced 2025-03-22 00:20:37 +01:00
MDL-76559 core: validate_email does not take false either
This commit is contained in:
parent
fb7d1b34ef
commit
0f8f164a07
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user