diff options
Diffstat (limited to 'includes/pages/admin_questions.php')
-rw-r--r-- | includes/pages/admin_questions.php | 4 |
1 files changed, 2 insertions, 2 deletions
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, ] |