diff options
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; |