From 2a74c1131d9f448d230b1929e66e8ae1d10915f0 Mon Sep 17 00:00:00 2001 From: Emre Akay Date: Mon, 30 Jun 2014 17:22:52 +0300 Subject: [PATCH] get_user_var implemented --- application/libraries/Aauth.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/application/libraries/Aauth.php b/application/libraries/Aauth.php index 864666f..ccf0f79 100644 --- a/application/libraries/Aauth.php +++ b/application/libraries/Aauth.php @@ -1614,8 +1614,12 @@ class Aauth { $query = $this->CI->db->get( $this->config_vars['user_variables'] ); // if variable not set - if ($query->num_rows() < 1) { - return false; + if ($query->num_rows() < 1) { return false;} + + else { + + $row = $query->row(); + return $row->value; } }