diff options
-rw-r--r-- | lib/private/User/Backend.php | 2 | ||||
-rw-r--r-- | lib/private/User/Database.php | 6 | ||||
-rw-r--r-- | lib/public/UserInterface.php | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/lib/private/User/Backend.php b/lib/private/User/Backend.php index b21db079d54..d58092feac1 100644 --- a/lib/private/User/Backend.php +++ b/lib/private/User/Backend.php @@ -93,7 +93,7 @@ abstract class Backend implements UserInterface { * @param string $sort * @return string[] an array of all uids */ - public function getUsers($search = '', $limit = null, $offset = null, $orderBy = 'lastLogin', $sort = 'DESC'): array { + public function getUsers($search = '', $limit = null, $offset = null, $orderBy = 'lastLogin', $sort = 'DESC') { return []; } diff --git a/lib/private/User/Database.php b/lib/private/User/Database.php index cb7988783e3..6a1861e5dba 100644 --- a/lib/private/User/Database.php +++ b/lib/private/User/Database.php @@ -238,9 +238,11 @@ class Database extends ABackend implements $query = $this->dbConn->getQueryBuilder(); - $appId = 'settings'; $configKey = 'email'; + $appId = 'settings'; + $configKey = 'email'; if($orderBy == 'lastLogin') { - $appId = 'login'; $configKey = 'lastLogin'; + $appId = 'login'; + $configKey = 'lastLogin'; } $query->select('uid', 'displayname') diff --git a/lib/public/UserInterface.php b/lib/public/UserInterface.php index 3f42d17383a..765da3a87a2 100644 --- a/lib/public/UserInterface.php +++ b/lib/public/UserInterface.php @@ -45,7 +45,7 @@ interface UserInterface { * @return string[] an array of all uids * @since 4.5.0 */ - public function getUsers($search = '', $limit = null, $offset = null, $orderBy = 'lastLogin', $sort = 'DESC'): array; + public function getUsers($search = '', $limit = null, $offset = null, $orderBy = 'lastLogin', $sort = 'DESC'); /** * check if a user exists |