summaryrefslogtreecommitdiffstats
path: root/lib/init.php
diff options
context:
space:
mode:
authorKarl Vollmer <vollmer@ampache.org>2011-12-01 20:34:08 -0400
committerKarl Vollmer <vollmer@ampache.org>2011-12-01 20:34:08 -0400
commit1e9aced735c972b948b2f62d818a310351f4c0cc (patch)
treee7f441116ff98322b7c7eeb8d671087424f3a187 /lib/init.php
parent56eb2ac7dcfa0b7e0269612632b7944ff7b6b51f (diff)
downloadampache-1e9aced735c972b948b2f62d818a310351f4c0cc.tar.gz
ampache-1e9aced735c972b948b2f62d818a310351f4c0cc.tar.bz2
ampache-1e9aced735c972b948b2f62d818a310351f4c0cc.zip
Whups
Diffstat (limited to 'lib/init.php')
-rw-r--r--lib/init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/init.php b/lib/init.php
index 34821033..33e53e02 100644
--- a/lib/init.php
+++ b/lib/init.php
@@ -195,7 +195,7 @@ if (!defined('NO_SESSION') && Config::get('use_auth')) {
vauth::check_session();
/* Create the new user */
- $GLOBALS['user'] = new User($_SESSION['userdata']['uid']);
+ $GLOBALS['user'] = User::get_from_username($_SESSION['userdata']['username']);
/* If the user ID doesn't exist deny them */
if (!$GLOBALS['user']->id AND !Config::get('demo_mode')) { vauth::logout(session_id()); exit; }