From c1b5e99afc60b630c58b754d912f2e7cece12376 Mon Sep 17 00:00:00 2001 From: Git Date: Mon, 28 Oct 2013 08:01:14 +0000 Subject: [PATCH] Empty commit --- sections/questions/questions.php | 7 +------ sections/questions/take_ask_question.php | 3 ++- sections/questions/take_ignore_question.php | 4 ++-- static/functions/questions.js | 17 +++++++++++++++++ 4 files changed, 22 insertions(+), 9 deletions(-) diff --git a/sections/questions/questions.php b/sections/questions/questions.php index 974b1722..5c28c68f 100644 --- a/sections/questions/questions.php +++ b/sections/questions/questions.php @@ -72,12 +72,7 @@ Delete - - - Ignore + Ignore - Answer diff --git a/sections/questions/take_ask_question.php b/sections/questions/take_ask_question.php index 0426c94a..3d0ace3d 100644 --- a/sections/questions/take_ask_question.php +++ b/sections/questions/take_ask_question.php @@ -4,7 +4,8 @@ authorize(); $DB->query("SELECT COUNT(1) FROM user_questions WHERE UserID = '$LoggedUser[ID]'"); -if ($DB->record_count() >= MAX_QUESTIONS) { +list($Results) = $DB->next_record(); +if ($Results >= MAX_QUESTIONS) { error("You have asked too many questions for the time being."); } diff --git a/sections/questions/take_ignore_question.php b/sections/questions/take_ignore_question.php index a1cc6516..7b94a15f 100644 --- a/sections/questions/take_ignore_question.php +++ b/sections/questions/take_ignore_question.php @@ -1,9 +1,10 @@