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/user_questions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/pages/user_questions.php') diff --git a/includes/pages/user_questions.php b/includes/pages/user_questions.php index d23b4e96..5d55f647 100644 --- a/includes/pages/user_questions.php +++ b/includes/pages/user_questions.php @@ -27,7 +27,7 @@ function user_questions() { $question = strip_request_item_nl('question'); if ($question != "") { sql_query("INSERT INTO `Questions` SET `UID`=" . sql_escape($user['UID']) . ", `Question`='" . sql_escape($question) . "'"); - header("Location: " . page_link_to("user_questions")); + redirect(page_link_to("user_questions")); } else return error("Gib eine Frage ein!", true); break; @@ -40,7 +40,7 @@ function user_questions() { $question = sql_select("SELECT * FROM `Questions` WHERE `QID`=" . sql_escape($id) . " LIMIT 1"); if (count($question) > 0 && $question[0]['UID'] == $user['UID']) { sql_query("DELETE FROM `Questions` WHERE `QID`=" . sql_escape($id) . " LIMIT 1"); - header("Location: " . page_link_to("user_questions")); + redirect(page_link_to("user_questions")); } else return error("No question found.", true); break; -- cgit v1.2.3-70-g09d2