diff options
-rwxr-xr-x | docs/CHANGELOG | 2 | ||||
-rw-r--r-- | lib/init.php | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/docs/CHANGELOG b/docs/CHANGELOG index a7357dc6..864d78c2 100755 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -4,6 +4,8 @@ -------------------------------------------------------------------------- v.3.4-Beta2 + - Fixed session start failure when use_auth is off and you have + no pre-existing cookie - Fixed print_tags.inc file to catalog matching, now fuzzy like it should be - Fixed bug where file pattern would be ignored if there were no 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']; |