Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -50,7 +50,7 @@ class Users
|
||||
{
|
||||
global $mdb;
|
||||
|
||||
$result = $mdb -> get( 'users', '*', [ 'email' => strtolower( $email ) ] );
|
||||
$result = $mdb -> get( 'users', '*', [ 'email' => strtolower( (string) $email ) ] );
|
||||
if ( $result === false )
|
||||
return false;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user