From 6c69e64d2dfa5dcbce7df38ece86625e0b5c738b Mon Sep 17 00:00:00 2001 From: bernd Date: Wed, 3 Mar 2021 15:57:59 +0100 Subject: [PATCH] ausgabe von fehlern im browser entfernt, variablen mit null anstelle von "" initialisiert --- index.php | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/index.php b/index.php index 50181e4..a4bc734 100644 --- a/index.php +++ b/index.php @@ -1,17 +1,14 @@ checkRequest($message); if ($saved) { $class = "success"; - $title = "Gespeichet"; + $title = "Success"; } else { $class = "error"; $title = "Sorry"; @@ -34,7 +31,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { } else { $class = "error"; - $title = "Sorry"; + $title = "Error"; $message = "Something goes wrong"; } }