diff options
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() |