mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-04 18:29:40 +02:00
Fix Scrutinizer reported errors
This commit is contained in:
parent
4a2d7b97f6
commit
80cd08ed04
29 changed files with 117 additions and 92 deletions
|
@ -189,7 +189,7 @@ if (!defined('NO_SESSION') && AmpConfig::get('use_auth')) {
|
|||
$GLOBALS['user'] = User::get_from_username($_SESSION['userdata']['username']);
|
||||
} else {
|
||||
$GLOBALS['user'] = new User($auth['username']);
|
||||
$GLOBALS['user']->id = '-1';
|
||||
$GLOBALS['user']->id = -1;
|
||||
$GLOBALS['user']->username = $auth['username'];
|
||||
$GLOBALS['user']->fullname = $auth['fullname'];
|
||||
$GLOBALS['user']->access = $auth['access'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue