mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fix #1854 add default values for theme_id and plugin_id
to handle undefined keys
This commit is contained in:
@@ -167,7 +167,11 @@ if (is_webmaster())
|
||||
|
||||
case ACTIVITY_SYSTEM_PLUGIN:
|
||||
$object_icon = 'icon-puzzle';
|
||||
$object = str_replace(['_', '-'], ' ', $details['plugin_id']);
|
||||
$object = 'plugin';
|
||||
if (isset($details['plugin_id']))
|
||||
{
|
||||
$object = str_replace(['_', '-'], ' ', $details['plugin_id']);
|
||||
}
|
||||
switch ($rows['action'])
|
||||
{
|
||||
case 'install':
|
||||
@@ -244,7 +248,11 @@ if (is_webmaster())
|
||||
|
||||
case ACTIVITY_SYSTEM_THEME:
|
||||
$object_icon = 'icon-brush';
|
||||
$object = str_replace(['_', '-'], ' ', $details['theme_id']);
|
||||
$object = 'theme';
|
||||
if (isset($details['theme_id']))
|
||||
{
|
||||
$object = str_replace(['_', '-'], ' ', $details['theme_id']);
|
||||
}
|
||||
|
||||
switch ($rows['action'])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user