From dab6c4d46d52f6436077f6d842016c0110e69129 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Wed, 26 Dec 2007 05:40:41 +0000 Subject: fixed session start failure if no cookie + use_auth off --- lib/init.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/init.php') diff --git a/lib/init.php b/lib/init.php index 35a56a1f..15ccf72d 100644 --- a/lib/init.php +++ b/lib/init.php @@ -203,9 +203,12 @@ elseif (!Config::get('use_auth')) { $auth['username'] = '-1'; $auth['fullname'] = "Ampache User"; $auth['id'] = -1; - $auth['access'] = "admin"; + $auth['access'] = '100'; $auth['offset_limit'] = 50; - if (!vauth::check_session()) { vauth::session_create($auth); } + if (!vauth::check_session()) { + session_start(); + vauth::session_create($auth); + } $GLOBALS['user'] = new User(-1); $GLOBALS['user']->fullname = 'Ampache User'; $GLOBALS['user']->offset_limit = $auth['offset_limit']; -- cgit