diff options
author | Simon Rettberg | 2021-06-24 14:45:05 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-06-24 14:45:05 +0200 |
commit | 51de7b7aac7ed626bee3bce1c3068159e54ab95b (patch) | |
tree | a21aae11caceaec3e2c5807ea5073e1cbdd874a4 /inc/user.inc.php | |
parent | [dnbd3] Update translations (diff) | |
download | slx-admin-51de7b7aac7ed626bee3bce1c3068159e54ab95b.tar.gz slx-admin-51de7b7aac7ed626bee3bce1c3068159e54ab95b.tar.xz slx-admin-51de7b7aac7ed626bee3bce1c3068159e54ab95b.zip |
[locations/minilinux] Minor cleanups and fixes
Diffstat (limited to 'inc/user.inc.php')
-rw-r--r-- | inc/user.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/user.inc.php b/inc/user.inc.php index d587c462..e89a4355 100644 --- a/inc/user.inc.php +++ b/inc/user.inc.php @@ -83,7 +83,7 @@ class User } } - public static function getAllowedLocations($permission) + public static function getAllowedLocations(string $permission): array { if (!self::isLoggedIn()) return []; @@ -105,7 +105,7 @@ class User } return $a; } - return array(); + return []; } public static function load() |