diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-08-02 20:54:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-02 20:54:09 +0200 |
commit | a0750349faebb06ec0a39d57de99b34d8b7784f9 (patch) | |
tree | 1900709b1aadf3346f86f111966c7f02c00e73d4 | |
parent | 0c3fe9123982f90bfe4f74c526975f362982a378 (diff) | |
parent | 56899c1a837cc194d3f156647f0fa49cc63e26d7 (diff) | |
download | nextcloud-server-a0750349faebb06ec0a39d57de99b34d8b7784f9.tar.gz nextcloud-server-a0750349faebb06ec0a39d57de99b34d8b7784f9.zip |
Merge pull request #39435 from nextcloud/backport/39309/stable27
[stable27] fix(profile): fix getUID on nullable user variable
-rw-r--r-- | lib/private/Profile/ProfileManager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Profile/ProfileManager.php b/lib/private/Profile/ProfileManager.php index 8de48994ff7..f20ae74768e 100644 --- a/lib/private/Profile/ProfileManager.php +++ b/lib/private/Profile/ProfileManager.php @@ -169,7 +169,7 @@ class ProfileManager { return; } if (!$this->appManager->isEnabledForUser($action->getAppId(), $visitingUser)) { - $this->logger->notice('App: ' . $action->getAppId() . ' cannot register actions as it is not enabled for the visiting user: ' . $visitingUser->getUID()); + $this->logger->notice('App: ' . $action->getAppId() . ' cannot register actions as it is not enabled for the visiting user: ' . ($visitingUser ? $visitingUser->getUID() : '(user not connected)')); return; } } |