From 52109f5cca448349040de02f796648d6066b4347 Mon Sep 17 00:00:00 2001 From: slawkens Date: Wed, 28 May 2025 14:13:04 +0200 Subject: [PATCH] Another solution --- system/settings.php | 2 +- system/src/Validator.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/system/settings.php b/system/settings.php index c212587d..a7a5ee0a 100644 --- a/system/settings.php +++ b/system/settings.php @@ -680,7 +680,7 @@ Sent by MyAAC,
'name' => 'Default Account Coins', 'type' => 'number', 'desc' => 'Default coins on new account', - 'hidden' => !$db->hasColumn('accounts', 'coins'), + 'hidden' => ($db && !$db->hasColumn('accounts', 'coins')), 'default' => 0, ], 'account_mail_change' => [ diff --git a/system/src/Validator.php b/system/src/Validator.php index 6c189b29..ad9e3e50 100644 --- a/system/src/Validator.php +++ b/system/src/Validator.php @@ -121,7 +121,7 @@ class Validator return false; } - if(!defined('MYAAC_INSTALL') && setting('core.account_mail_block_plus_sign')) { + if(setting('core.account_mail_block_plus_sign')) { $explode = explode('@', $email); if(isset($explode[0]) && (strpos($explode[0],'+') !== false)) { self::$lastError = 'Please do not use plus (+) sign in your e-mail.';