mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 04:20:49 +08:00
fix check_email()
This commit is contained in:
@@ -1487,7 +1487,7 @@ function check_email ($email) {
|
||||
return false;
|
||||
}
|
||||
$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)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user