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 2dfe293 commit 94aaa0f
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 @@ -401,7 +401,9 @@ protected function updateVerificationStatus(IAccount $updatedAccount, array $old
} catch (PropertyDoesNotExistException $e) {
continue;
}
$wasVerified = isset($oldData[$propertyName]['verified']) && $oldData[$propertyName]['verified'] === self::VERIFIED;
$wasVerified = isset($oldData[$propertyName])
&& isset($oldData[$propertyName]['verified'])
&& $oldData[$propertyName]['verified'] === self::VERIFIED;
if ($property->getValue() !== $oldData[$propertyName]['value']
&& ($property->getVerified() !== self::NOT_VERIFIED
|| $wasVerified)
Expand Down

0 comments on commit 94aaa0f

Please sign in to comment.