diff --git a/lib/private/Accounts/AccountManager.php b/lib/private/Accounts/AccountManager.php index dfc9764fd78e0..0de563304dea8 100644 --- a/lib/private/Accounts/AccountManager.php +++ b/lib/private/Accounts/AccountManager.php @@ -404,7 +404,9 @@ protected function updateVerificationStatus(IAccount $updatedAccount, array $old $wasVerified = isset($oldData[$propertyName]) && isset($oldData[$propertyName]['verified']) && $oldData[$propertyName]['verified'] === self::VERIFIED; - if ($property->getValue() !== $oldData[$propertyName]['value'] + if ((!isset($oldData[$propertyName]) + || !isset($oldData[$propertyName]['value']) + || $property->getValue() !== $oldData[$propertyName]['value']) && ($property->getVerified() !== self::NOT_VERIFIED || $wasVerified) ) {