diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-01-18 15:45:00 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-01-24 11:16:44 +0100 |
commit | a6eb7dc676dd18ad153fc920f9b13e802974c94f (patch) | |
tree | 9b30259c1eb93ac3f7e1614c6440b2d228cb6db8 /lib/public/IConfig.php | |
parent | d630af4ca80d4e0ab37197df2bc8a0f98ea674a4 (diff) | |
download | nextcloud-server-a6eb7dc676dd18ad153fc920f9b13e802974c94f.tar.gz nextcloud-server-a6eb7dc676dd18ad153fc920f9b13e802974c94f.zip |
Fix signatures and null $userId corner case
Configuration values are sometimes queried when there is no user in
session, so $userId is null and we just want to return the default
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/public/IConfig.php')
-rw-r--r-- | lib/public/IConfig.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/IConfig.php b/lib/public/IConfig.php index 31e62cc23c0..79dd72ca205 100644 --- a/lib/public/IConfig.php +++ b/lib/public/IConfig.php @@ -186,7 +186,7 @@ interface IConfig { /** * Shortcut for getting a user defined value * - * @param string $userId the userId of the user that we want to store the value under + * @param ?string $userId the userId of the user that we want to store the value under * @param string $appName the appName that we stored the value under * @param string $key the key under which the value is being stored * @param mixed $default the default value to be returned if the value isn't set |