diff --git a/content/profile.php b/content/profile.php index 0ef7179..8fc7566 100644 --- a/content/profile.php +++ b/content/profile.php @@ -16,7 +16,7 @@ $isEditMode = (isset($_GET["edit"]) && $_GET["edit"] === "1") || !empty($error);

-
+ updateUser( $oldEmail, @@ -58,6 +66,7 @@ try { exit(); } else { $error = "Die Daten konnten nicht gespeichert werden."; + $_GET["edit"] = "1"; } } } @@ -73,7 +82,10 @@ try { } catch (InvalidArgumentException $e) { $error = $e->getMessage(); + $_GET["edit"] = "1"; + } catch (Exception $e) { $error = "Es ist ein interner Fehler aufgetreten. Bitte versuche es erneut."; $_SESSION["message"] = "internal_error"; + $_GET["edit"] = "1"; } \ No newline at end of file