From b8c4e1cbbcf178d0a3c619a776239f0712363dfe Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Wed, 14 Jun 2023 03:20:04 +0800 Subject: [PATCH] fix check_email() --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index f9f419e8..bc240f32 100644 --- a/include/functions.php +++ b/include/functions.php @@ -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; }