summaryrefslogtreecommitdiff
path: root/includes/pages/user_questions.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2012-12-30 18:27:45 +0100
committerPhilip Häusler <msquare@notrademark.de>2012-12-30 18:27:45 +0100
commita573b4e325bbac31642f5a7d0a65cc07464c473c (patch)
treeea9f70596bf8f8afbacfba8c075faf69abc09b09 /includes/pages/user_questions.php
parent8fd5ffb3352f28557187ae16aaabb4b245a22941 (diff)
replaced header with redirect function
Diffstat (limited to 'includes/pages/user_questions.php')
-rw-r--r--includes/pages/user_questions.php4
1 files changed, 2 insertions, 2 deletions
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;