From a573b4e325bbac31642f5a7d0a65cc07464c473c Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Sun, 30 Dec 2012 18:27:45 +0100 Subject: replaced header with redirect function --- includes/pages/admin_questions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/pages/admin_questions.php') diff --git a/includes/pages/admin_questions.php b/includes/pages/admin_questions.php index a85c8c0f..1e410f07 100644 --- a/includes/pages/admin_questions.php +++ b/includes/pages/admin_questions.php @@ -61,7 +61,7 @@ function admin_questions() { if ($answer != "") { sql_query("UPDATE `Questions` SET `AID`=" . sql_escape($user['UID']) . ", `Answer`='" . sql_escape($answer) . "' WHERE `QID`=" . sql_escape($id) . " LIMIT 1"); engelsystem_log("Question " . $question[0]['Question'] . " answered: " . $answer); - header("Location: " . page_link_to("admin_questions")); + redirect(page_link_to("admin_questions")); } else return error("Gib eine Antwort ein!", true); } else @@ -77,7 +77,7 @@ function admin_questions() { if (count($question) > 0) { sql_query("DELETE FROM `Questions` WHERE `QID`=" . sql_escape($id) . " LIMIT 1"); engelsystem_log("Question deleted: " . $question[0]['Question']); - header("Location: " . page_link_to("admin_questions")); + redirect(page_link_to("admin_questions")); } else return error("No question found.", true); break; -- cgit v1.3.1