mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Allow role to be null
This commit is contained in:
+2
-2
@@ -246,11 +246,11 @@ class User extends Authenticatable
|
||||
self::find($id)->delete();
|
||||
}
|
||||
|
||||
public static function getCount(string $role = '', string $username = '', string $host = '', string $email = ''): int
|
||||
public static function getCount($role = null, string $username = '', string $host = '', string $email = ''): int
|
||||
{
|
||||
$res = self::query()->where('email', '<>', 'sharing@nZEDb.com');
|
||||
|
||||
if ($role !== '') {
|
||||
if (! empty($role)) {
|
||||
$res->where('roles_id', $role);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user