mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 20:17:24 +08:00
fix check_email()
This commit is contained in:
@@ -1487,7 +1487,7 @@ function check_email ($email) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$bannedEmails = \Nexus\Database\NexusDB::select('select * from bannedemails');
|
$bannedEmails = \Nexus\Database\NexusDB::select('select * from bannedemails');
|
||||||
$bannedEmailsArr = preg_split('/[\s]+/', $bannedEmails[0]['value'] ?? '');
|
$bannedEmailsArr = array_filter(preg_split('/[\s]+/', $bannedEmails[0]['value'] ?? ''));
|
||||||
if (empty($bannedEmailsArr)) {
|
if (empty($bannedEmailsArr)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user