Skip to content

Commit

Permalink
Reset meta data before retrieving from database. Fixes persistent ses…
Browse files Browse the repository at this point in the history
…sion login issues.
  • Loading branch information
Bill Hunt committed Nov 27, 2013
1 parent a6f5d1b commit 2b5965c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inc/user.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ public function fb_login($email, $fname, $lname){
$this->display_name = $this->company != '' ? $this->company : $this->fname.' '.strtoupper(substr($this->lname, 0, 1)).'.';

//GRAB USER META PROPERTIES
$this->meta = array();
$r = mysql_query("SELECT meta_key,meta_value FROM ".DB_TBL_USER_META." WHERE user='".$this->db->clean($this->id)."'", $this->db->mySQLconnR);
while($u = mysql_fetch_assoc($r))
$this->meta[$u['meta_key']] = $u['meta_value'];
Expand Down Expand Up @@ -215,6 +216,7 @@ public function login($email, $pass)
$this->display_name = $this->company != '' ? $this->company : $this->fname.' '.strtoupper(substr($this->lname, 0, 1)).'.';

//GRAB USER META PROPERTIES
$this->meta = array();
$r = mysql_query("SELECT meta_key,meta_value FROM ".DB_TBL_USER_META." WHERE user='".$this->db->clean($this->id)."'", $this->db->mySQLconnR);
while($u = mysql_fetch_assoc($r))
$this->meta[$u['meta_key']] = $u['meta_value'];
Expand Down

0 comments on commit 2b5965c

Please sign in to comment.