Skip to content

Commit

Permalink
get_user_var implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
Emre Akay committed Jun 30, 2014
1 parent 7c050bc commit 2a74c11
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -1614,8 +1614,12 @@ public function get_user_var( $key, $user_id = false){
$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;
}

}
Expand Down

0 comments on commit 2a74c11

Please sign in to comment.