Skip to content

Commit

Permalink
Include changed data
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek authored Mar 21, 2024
1 parent 997b026 commit 74c495d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controller/ProfileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ public function editAction(Request $request, UserNotifier $userNotifier): Respon

if ($form->isSubmitted() && $form->isValid()) {
$diffs = array_filter([
$oldEmail !== $user->getEmail() ? 'email' : null,
$oldUsername !== $user->getUsername() ? 'username' : null,
$oldEmail !== $user->getEmail() ? 'email ('.$oldEmail.' => '.$user->getEmail().')' : null,
$oldUsername !== $user->getUsername() ? 'username ('.$oldUsername.' => '.$user->getUsername().')' : null,
]);

if (!empty($diffs)) {
Expand Down

0 comments on commit 74c495d

Please sign in to comment.