From 2dcb7cc2de448c664bbc9a7112f9cb13dc15c516 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Mon, 8 Oct 2018 21:15:56 +0200 Subject: Replaced some global `$user` variables --- includes/pages/admin_questions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/pages/admin_questions.php') diff --git a/includes/pages/admin_questions.php b/includes/pages/admin_questions.php index b4a956d5..fc84ff9e 100644 --- a/includes/pages/admin_questions.php +++ b/includes/pages/admin_questions.php @@ -39,7 +39,7 @@ function admin_new_questions() */ function admin_questions() { - global $user; + $user = Auth()->user(); $request = request(); if (!$request->has('action')) { @@ -126,7 +126,7 @@ function admin_questions() LIMIT 1 ', [ - $user['UID'], + $user->id, $answer, $question_id, ] -- cgit v1.3.1