Merge branch 'MDL-76559-master' of https://github.com/andrewnicols/moodle
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user