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_faq.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes/pages/admin_faq.php') diff --git a/includes/pages/admin_faq.php b/includes/pages/admin_faq.php index 2cd75955..05731296 100644 --- a/includes/pages/admin_faq.php +++ b/includes/pages/admin_faq.php @@ -20,7 +20,7 @@ function admin_faq() { sql_query("INSERT INTO `FAQ` SET `Frage_de`='" . sql_escape($frage) . "', `Frage_en`='" . sql_escape($question) . "', `Antwort_de`='" . sql_escape($antwort) . "', `Antwort_en`='" . sql_escape($answer) . "'"); - header("Location: " . page_link_to("admin_faq")); + redirect(page_link_to("admin_faq")); break; case 'save' : @@ -40,7 +40,7 @@ function admin_faq() { sql_query("UPDATE `FAQ` SET `Frage_de`='" . sql_escape($frage) . "', `Frage_en`='" . sql_escape($question) . "', `Antwort_de`='" . sql_escape($antwort) . "', `Antwort_en`='" . sql_escape($answer) . "' WHERE `FID`=" . sql_escape($id) . " LIMIT 1"); - header("Location: " . page_link_to("admin_faq")); + redirect(page_link_to("admin_faq")); } else return error("No FAQ found.", true); break; @@ -78,7 +78,7 @@ function admin_faq() { list ($faq) = $faq; sql_query("DELETE FROM `FAQ` WHERE `FID`=" . sql_escape($id) . " LIMIT 1"); - header("Location: " . page_link_to("admin_faq")); + redirect(page_link_to("admin_faq")); } else return error("No FAQ found.", true); break; -- cgit v1.2.3-54-g00ecf