Skip to content

Commit

Permalink
MDL-76559 core: validate_email does not take false either
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Dec 7, 2022
1 parent 7c28bd0 commit 57f4734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/weblib.php
Expand Up @@ -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;
}

Expand Down

0 comments on commit 57f4734

Please sign in to comment.