From ce7f071c38202764f43eded4c3157a4743bd545f Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Wed, 21 Dec 2011 23:18:57 +0100 Subject: #44 angeltypes recreated --- includes/pages/user_questions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes/pages/user_questions.php') diff --git a/includes/pages/user_questions.php b/includes/pages/user_questions.php index 18b9c6dd..e30663f7 100644 --- a/includes/pages/user_questions.php +++ b/includes/pages/user_questions.php @@ -29,20 +29,20 @@ function user_questions() { sql_query("INSERT INTO `Questions` SET `UID`=" . sql_escape($user['UID']) . ", `Question`='" . sql_escape($question) . "'"); header("Location: " . page_link_to("user_questions")); } else - return error("Gib eine Frage ein!"); + return error("Gib eine Frage ein!", 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 && $question[0]['UID'] == $user['UID']) { sql_query("DELETE FROM `Questions` WHERE `QID`=" . sql_escape($id) . " LIMIT 1"); header("Location: " . page_link_to("user_questions")); } else - return error("No question found."); + return error("No question found.", true); break; } } -- cgit v1.2.3-70-g09d2