diff options
author | msquare <msquare@notrademark.de> | 2016-09-29 12:45:06 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-09-29 12:45:06 +0200 |
commit | 07ddbb0f4c76253b1d888ceab555bdf26992fd01 (patch) | |
tree | 9c4b6f3528e144bf675c78c6ddae848bf41c2cd6 /includes/pages/user_questions.php | |
parent | c231070dcc91d976a879674dd3fae7972cb064cf (diff) |
make short variable names longer
Diffstat (limited to 'includes/pages/user_questions.php')
-rw-r--r-- | includes/pages/user_questions.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/pages/user_questions.php b/includes/pages/user_questions.php index 6d9ded8e..10e8fef6 100644 --- a/includes/pages/user_questions.php +++ b/includes/pages/user_questions.php @@ -39,14 +39,14 @@ function user_questions() { break; case 'delete': if (isset($_REQUEST['id']) && preg_match("/^[0-9]{1,11}$/", $_REQUEST['id'])) { - $id = $_REQUEST['id']; + $question_id = $_REQUEST['id']; } else { return error(_("Incomplete call, missing Question ID."), true); } - $question = sql_select("SELECT * FROM `Questions` WHERE `QID`='" . sql_escape($id) . "' LIMIT 1"); + $question = sql_select("SELECT * FROM `Questions` WHERE `QID`='" . sql_escape($question_id) . "' LIMIT 1"); if (count($question) > 0 && $question[0]['UID'] == $user['UID']) { - sql_query("DELETE FROM `Questions` WHERE `QID`='" . sql_escape($id) . "' LIMIT 1"); + sql_query("DELETE FROM `Questions` WHERE `QID`='" . sql_escape($question_id) . "' LIMIT 1"); redirect(page_link_to("user_questions")); } else { return page_with_title(questions_title(), [ |