From 93bcf3e64175b85913a8d42ed59f5b18c18d958c Mon Sep 17 00:00:00 2001 From: Karl Cordes Date: Sun, 7 Apr 2019 10:36:25 +1000 Subject: [PATCH] Fix bug in getCurrentUserID() --- app/controllers/app_controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/app_controller.php b/app/controllers/app_controller.php index bee0416b..abe9925e 100755 --- a/app/controllers/app_controller.php +++ b/app/controllers/app_controller.php @@ -62,7 +62,7 @@ class AppController extends Controller { function getCurrentUserID() { $currentuser = $this->getCurrentUser(); if($currentuser) { - return $currentuser['id']; + return $currentuser['User']['id']; } else { return false;