diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 95a74394c4..1407dd3421 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -1446,13 +1446,22 @@ function ui_format_alert_row( $actionText .= ''; - if ($actionDefault != '') { - $actionText .= db_get_sql( + if ($actionDefault !== '') { + $actionDefault_name = db_get_sql( sprintf( 'SELECT name FROM talert_actions WHERE id = %d', $actionDefault ) - ).' ('.__('Default').')'; + ); + foreach ($actions as $action) { + if ($actionDefault_name === $action['name']) { + $hide_actionDefault = true; + } + } + + if ($hide_actionDefault !== true) { + $actionText .= $actionDefault_name.' ('.__('Default').')'; + } } }