mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
autologin: Don't use `count()' for is empty checks
Using `count()' in favor of `empty()' for empty checks on arrays is bad habit. While there's literally no performance gain in the "fixed" scenario, there's one on large arrays and thus should be avoided everywhere. refs #6462
This commit is contained in:
parent
794910256a
commit
854e284d42
@ -446,7 +446,7 @@ class User
|
||||
*/
|
||||
public function isRemoteUser()
|
||||
{
|
||||
return (count($this->remoteUserInformation)) ? true : false;
|
||||
return ! empty($this->remoteUserInformation);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user