mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 16:53:34 +02:00
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:
@@ -380,7 +380,7 @@ DELETE FROM '. PLUGINS_TABLE .'
|
|||||||
{
|
{
|
||||||
global $user;
|
global $user;
|
||||||
|
|
||||||
if ('webmaster' == $user['status'])
|
if (isset($user) and 'webmaster' == $user['status'])
|
||||||
{
|
{
|
||||||
$plugin['hasSettings'] = true;
|
$plugin['hasSettings'] = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user