diff options
author | Philip Häusler <msquare@notrademark.de> | 2012-12-30 18:27:45 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2012-12-30 18:27:45 +0100 |
commit | a573b4e325bbac31642f5a7d0a65cc07464c473c (patch) | |
tree | ea9f70596bf8f8afbacfba8c075faf69abc09b09 /includes/pages/admin_questions.php | |
parent | 8fd5ffb3352f28557187ae16aaabb4b245a22941 (diff) |
replaced header with redirect function
Diffstat (limited to 'includes/pages/admin_questions.php')
-rw-r--r-- | includes/pages/admin_questions.php | 4 |
1 files changed, 2 insertions, 2 deletions
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; |