Remove empty
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
parent
cd191b8dfe
commit
25ae5ebc78
@ -291,7 +291,7 @@ class CheckUserPrivileges
|
||||
$username = '';
|
||||
|
||||
$current = $this->dbi->getCurrentUserAndHost();
|
||||
if (! empty($current)) {
|
||||
if ($current !== []) {
|
||||
[$username] = $current;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user