Skip to content

Commit 34c6881

Browse files
authored
Merge pull request #952 from nextcloud/fix/fix-object-to-string-type-error
Do not pass an instance of User where a string is expected
2 parents f328c70 + 5fc3ed6 commit 34c6881

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/MailQueueHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ protected function sendEmailToUser($userName, $email, $lang, $timezone, $maxTime
416416
} catch (\Exception $e) {
417417
$this->logger->logException($e, [
418418
'message' => 'Failed sending activity email to user "{user}"',
419-
'user' => $user,
419+
'user' => $userName,
420420
'app' => 'activity',
421421
]);
422422
return false;

0 commit comments

Comments
 (0)