summaryrefslogtreecommitdiff
path: root/includes/pages/admin_questions.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/pages/admin_questions.php')
-rw-r--r--includes/pages/admin_questions.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/includes/pages/admin_questions.php b/includes/pages/admin_questions.php
index 0e41390f..04868e32 100644
--- a/includes/pages/admin_questions.php
+++ b/includes/pages/admin_questions.php
@@ -18,9 +18,7 @@ function admin_questions_title()
*/
function admin_new_questions()
{
- global $page;
-
- if ($page != 'admin_questions') {
+ if (current_page() != 'admin_questions') {
if (auth()->can('admin_questions')) {
$new_messages = count(DB::select('SELECT `QID` FROM `Questions` WHERE `AID` IS NULL'));