mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 19:29:58 +03:00
fix #1854 add default values for theme_id and plugin_id
to handle undefined keys
This commit is contained in:
parent
d0143e9259
commit
0fb7ee0523
1 changed files with 10 additions and 2 deletions
|
@ -167,7 +167,11 @@ if (is_webmaster())
|
||||||
|
|
||||||
case ACTIVITY_SYSTEM_PLUGIN:
|
case ACTIVITY_SYSTEM_PLUGIN:
|
||||||
$object_icon = 'icon-puzzle';
|
$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'])
|
switch ($rows['action'])
|
||||||
{
|
{
|
||||||
case 'install':
|
case 'install':
|
||||||
|
@ -244,7 +248,11 @@ if (is_webmaster())
|
||||||
|
|
||||||
case ACTIVITY_SYSTEM_THEME:
|
case ACTIVITY_SYSTEM_THEME:
|
||||||
$object_icon = 'icon-brush';
|
$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'])
|
switch ($rows['action'])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue