Added email in current user class.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 4 Feb 2013 07:46:49 +0000 (08:46 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 4 Feb 2013 07:46:49 +0000 (08:46 +0100)
includes/current_user.inc

index 7f04eb778329e347b017f0523ad4d67f0eb2d68c..76d52f2f126f5228c4b74e6a1d2e406de14e4106 100644 (file)
@@ -22,6 +22,7 @@ class current_user
        var $loginname;
        var $username;
        var $name;
+       var $email;
        var $company; // user's company
        var $pos;
        var $access;
@@ -120,6 +121,7 @@ class current_user
                    $this->username = $this->loginname;
                    $this->prefs = new user_prefs($myrow);
                    $this->user = @$myrow["id"];
+                $this->email = @$myrow["email"];
                        update_user_visitdate($this->username);
                        $this->logged = true;
                                $this->last_act = time();