Skip to content

Commit

Permalink
FIX Warning: Undefined array key "Locale" (#1365)
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala authored Sep 19, 2022
1 parent 9ddbd7d commit 7892f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/CMSProfileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function save($data, $form)

$response = parent::save($data, $form);

if ($origLocale != $data['Locale']) {
if (isset($data['Locale']) && $origLocale != $data['Locale']) {
$response->addHeader('X-Reload', true);
$response->addHeader('X-ControllerURL', $this->Link());
}
Expand Down

0 comments on commit 7892f7a

Please sign in to comment.