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:
Eric Lippmann 2014-09-18 15:18:01 +02:00
parent 794910256a
commit 854e284d42
1 changed files with 1 additions and 1 deletions

View File

@ -446,7 +446,7 @@ class User
*/ */
public function isRemoteUser() public function isRemoteUser()
{ {
return (count($this->remoteUserInformation)) ? true : false; return ! empty($this->remoteUserInformation);
} }
/** /**