Skip to content

Commit 105d066

Browse files
authored
Merge pull request #39437 from nextcloud/backport/39309/stable26
[stable26] fix(profile): fix getUID on nullable user variable
2 parents c174c47 + 5a64476 commit 105d066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Profile/ProfileManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ private function registerAction(ILinkAction $action, IUser $targetUser, ?IUser $
169169
return;
170170
}
171171
if (!$this->appManager->isEnabledForUser($action->getAppId(), $visitingUser)) {
172-
$this->logger->notice('App: ' . $action->getAppId() . ' cannot register actions as it is not enabled for the visiting user: ' . $visitingUser->getUID());
172+
$this->logger->notice('App: ' . $action->getAppId() . ' cannot register actions as it is not enabled for the visiting user: ' . ($visitingUser ? $visitingUser->getUID() : '(user not connected)'));
173173
return;
174174
}
175175
}

0 commit comments

Comments
 (0)