summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-08-02 20:54:09 +0200
committerGitHub <noreply@github.com>2023-08-02 20:54:09 +0200
commita0750349faebb06ec0a39d57de99b34d8b7784f9 (patch)
tree1900709b1aadf3346f86f111966c7f02c00e73d4
parent0c3fe9123982f90bfe4f74c526975f362982a378 (diff)
parent56899c1a837cc194d3f156647f0fa49cc63e26d7 (diff)
downloadnextcloud-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.php2
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;
}
}