diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-03-22 13:54:27 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-03-22 13:54:27 +0100 |
commit | 17afaa488faadac42ac85d71444140b2e14337cb (patch) | |
tree | 2ca0dcba6725fd68671ab39ac27fece34a91e9fc /apps/user_ldap/lib/Handler | |
parent | 014a6346359b89f15ca163149a29388b81cc8298 (diff) | |
download | nextcloud-server-17afaa488faadac42ac85d71444140b2e14337cb.tar.gz nextcloud-server-17afaa488faadac42ac85d71444140b2e14337cb.zip |
fix undefined method getExtStorageHome()
- adds a type check
- defines missing method in OfflineUser
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/lib/Handler')
-rw-r--r-- | apps/user_ldap/lib/Handler/ExtStorageConfigHandler.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Handler/ExtStorageConfigHandler.php b/apps/user_ldap/lib/Handler/ExtStorageConfigHandler.php index 0d3c5b8f3f3..6f2a1007c16 100644 --- a/apps/user_ldap/lib/Handler/ExtStorageConfigHandler.php +++ b/apps/user_ldap/lib/Handler/ExtStorageConfigHandler.php @@ -62,7 +62,7 @@ class ExtStorageConfigHandler extends UserContext implements IConfigHandler { } $ldapUser = $access->userManager->get($user->getUID()); - $extHome = $ldapUser->getExtStorageHome(); + $extHome = $ldapUser !== null ? $ldapUser->getExtStorageHome() : ''; return $this->processInput($optionValue, $extHome); } |