From 63193361e82a15a1550ea217231928f505dfa5e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6?= Date: Wed, 13 Aug 2025 08:46:01 +0200 Subject: [PATCH] fix: ensure repair email is a string MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- lib/Repair/ResetEmails.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Repair/ResetEmails.php b/lib/Repair/ResetEmails.php index 9568b4da..2cbb2f86 100644 --- a/lib/Repair/ResetEmails.php +++ b/lib/Repair/ResetEmails.php @@ -29,7 +29,7 @@ public function getName(): string { public function run(IOutput $output) { foreach ($this->guestManager->listGuests() as $guestId) { $guest = $this->userManager->get($guestId); - if (strtolower($guest->getSystemEMailAddress()) !== strtolower($guestId)) { + if (strtolower($guest->getSystemEMailAddress() ?? '') !== strtolower($guestId)) { $this->config->setUserValue($guestId, 'guests', 'old_email', $guest->getSystemEMailAddress()); $guest->setSystemEMailAddress(strtolower($guestId)); }