mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 01:04:09 +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()
|
public function isRemoteUser()
|
||||||
{
|
{
|
||||||
return (count($this->remoteUserInformation)) ? true : false;
|
return ! empty($this->remoteUserInformation);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user