From 0e800c836a1b2d95760e3c27e7e7523cf8a889c1 Mon Sep 17 00:00:00 2001 From: ninearif Date: Thu, 13 Sep 2018 14:54:09 +0700 Subject: [PATCH] fix "undefined property: stdClass::$bgcolor" in users/profile.ph --- application/third_party/ion_auth/models/Ion_auth_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/third_party/ion_auth/models/Ion_auth_model.php b/application/third_party/ion_auth/models/Ion_auth_model.php index f7cb30c..dec6a74 100644 --- a/application/third_party/ion_auth/models/Ion_auth_model.php +++ b/application/third_party/ion_auth/models/Ion_auth_model.php @@ -1648,7 +1648,7 @@ public function get_users_groups($id = FALSE) // if no id was passed use the current users id $id || $id = $this->session->userdata('user_id'); - return $this->db->select($this->tables['users_groups'].'.'.$this->join['groups'].' as id, '.$this->tables['groups'].'.name, '.$this->tables['groups'].'.description') + return $this->db->select($this->tables['users_groups'].'.'.$this->join['groups'].' as id, '.$this->tables['groups'].'.name, '.$this->tables['groups'].'.description,'.$this->tables['groups'].'.bgcolor') ->where($this->tables['users_groups'].'.'.$this->join['users'], $id) ->join($this->tables['groups'], $this->tables['users_groups'].'.'.$this->join['groups'].'='.$this->tables['groups'].'.id') ->get($this->tables['users_groups']);