diff options
author | Philip Häusler <msquare@notrademark.de> | 2011-12-21 23:18:57 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2011-12-21 23:18:57 +0100 |
commit | ce7f071c38202764f43eded4c3157a4743bd545f (patch) | |
tree | c4fc520d931df92c58b94a4bf4dd31cd92ff4591 /includes/pages/admin_questions.php | |
parent | def9532d6ba5203f4bfeefa2db21b8d4fe006f32 (diff) |
#44 angeltypes recreated
Diffstat (limited to 'includes/pages/admin_questions.php')
-rw-r--r-- | includes/pages/admin_questions.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/pages/admin_questions.php b/includes/pages/admin_questions.php index 0be05c7b..8df779ac 100644 --- a/includes/pages/admin_questions.php +++ b/includes/pages/admin_questions.php @@ -52,7 +52,7 @@ function admin_questions() { if (isset ($_REQUEST['id']) && preg_match("/^[0-9]{1,11}$/", $_REQUEST['id'])) $id = $_REQUEST['id']; else - return error("Incomplete call, missing Question ID."); + return error("Incomplete call, missing Question ID.", true); $question = sql_select("SELECT * FROM `Questions` WHERE `QID`=" . sql_escape($id) . " LIMIT 1"); if (count($question) > 0 && $question[0]['AID'] == "0") { @@ -62,22 +62,22 @@ function admin_questions() { sql_query("UPDATE `Questions` SET `AID`=" . sql_escape($user['UID']) . ", `Answer`='" . sql_escape($answer) . "' WHERE `QID`=" . sql_escape($id) . " LIMIT 1"); header("Location: " . page_link_to("admin_questions")); } else - return error("Gib eine Antwort ein!"); + return error("Gib eine Antwort ein!", true); } else - return error("No question found."); + return error("No question found.", true); break; case 'delete' : if (isset ($_REQUEST['id']) && preg_match("/^[0-9]{1,11}$/", $_REQUEST['id'])) $id = $_REQUEST['id']; else - return error("Incomplete call, missing Question ID."); + return error("Incomplete call, missing Question ID.", true); $question = sql_select("SELECT * FROM `Questions` WHERE `QID`=" . sql_escape($id) . " LIMIT 1"); if (count($question) > 0) { sql_query("DELETE FROM `Questions` WHERE `QID`=" . sql_escape($id) . " LIMIT 1"); header("Location: " . page_link_to("admin_questions")); } else - return error("No question found."); + return error("No question found.", true); break; } } |