fixes #2074 make sure a session exists

Which is not the case on install.php and its call to activate_core_plugins
This commit is contained in:
plegall
2023-12-22 18:50:45 +01:00
parent 06e0b50043
commit d0836a5c73

View File

@@ -380,7 +380,7 @@ DELETE FROM '. PLUGINS_TABLE .'
{
global $user;
if ('webmaster' == $user['status'])
if (isset($user) and 'webmaster' == $user['status'])
{
$plugin['hasSettings'] = true;
}