From 98ab1c8d95ae2fd4e07de366029a8cb224bcfe34 Mon Sep 17 00:00:00 2001 From: Horus Date: Fri, 2 Dec 2016 20:10:29 +0100 Subject: Bugfix --- intern.gospeladlershof.de/code/chor/update.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'intern.gospeladlershof.de/code/chor') diff --git a/intern.gospeladlershof.de/code/chor/update.php b/intern.gospeladlershof.de/code/chor/update.php index a781835..f3ac83f 100644 --- a/intern.gospeladlershof.de/code/chor/update.php +++ b/intern.gospeladlershof.de/code/chor/update.php @@ -6,7 +6,7 @@ require_once __DIR__ . '/../session.php'; $db = get_db(); $id = $_REQUEST["id"]; -$nachricht = $_REQUEST["termin"]; +$nachricht = $_REQUEST["nachricht"]; try { $stmt = $db->prepare("UPDATE chor set nachricht =:nachricht WHERE id=:id;"); @@ -20,7 +20,7 @@ try { error_log($e->getMessage()); } -if ( empty($_SESSION) || is_null($_SESSON["error"]) ) { +if ( empty($_SESSION) || is_null($_SESSION["error"]) ) { $_SESSION["success"] = "Erfolgreich aktualisiert!"; } header($_SERVER["SERVER_PROTOCOL"] . " 302 Redirect"); -- cgit v1.2.3