mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-18 15:50:50 +08:00
fix management create user
This commit is contained in:
@@ -1485,8 +1485,8 @@ function check_email ($email) {
|
||||
if(!preg_match('/^[A-Za-z0-9][A-Za-z0-9_.+\-]*@[A-Za-z0-9][A-Za-z0-9_+\-]*(\.[A-Za-z0-9][A-Za-z0-9_+\-]*)+$/', $email)) {
|
||||
return false;
|
||||
}
|
||||
$bannedEmails = mysql_fetch_assoc(sql_query('select * from bannedemails'));
|
||||
$bannedEmailsArr = preg_split('/[\s]+/', $bannedEmails['value'] ?? '');
|
||||
$bannedEmails = \Nexus\Database\NexusDB::select('select * from bannedemails');
|
||||
$bannedEmailsArr = preg_split('/[\s]+/', $bannedEmails[0]['value'] ?? '');
|
||||
if (empty($bannedEmailsArr)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user