Skip to content

Commit

Permalink
fixup! adjust verification state updater method
Browse files Browse the repository at this point in the history
  • Loading branch information
blizzz committed Jun 22, 2021
1 parent 94aaa0f commit f9622e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/private/Accounts/AccountManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
) {
Expand Down

0 comments on commit f9622e8

Please sign in to comment.