summaryrefslogtreecommitdiff
path: root/includes/pages/admin_questions.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/pages/admin_questions.php')
-rw-r--r--includes/pages/admin_questions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/pages/admin_questions.php b/includes/pages/admin_questions.php
index 54d5509b..8a63f8db 100644
--- a/includes/pages/admin_questions.php
+++ b/includes/pages/admin_questions.php
@@ -122,7 +122,7 @@ function admin_questions()
. ' answered: '
. $answer
);
- redirect(page_link_to('admin_questions'));
+ throw_redirect(page_link_to('admin_questions'));
} else {
return error('Enter an answer!', true);
}
@@ -145,7 +145,7 @@ function admin_questions()
if (!empty($question)) {
$question->delete();
engelsystem_log('Question deleted: ' . $question['Question']);
- redirect(page_link_to('admin_questions'));
+ throw_redirect(page_link_to('admin_questions'));
} else {
return error('No question found.', true);
}