diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index 95a86c62e7..c853cde009 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -3952,6 +3952,7 @@ function events_get_response_target( } if (strpos($target, '_data_') !== false + && $eventObj !== null && $eventObj->module() !== null ) { $target = str_replace( @@ -3959,9 +3960,16 @@ function events_get_response_target( $eventObjt->module()->lastValue(), $target ); + } else { + $target = str_replace( + '_data_', + __('N/A'), + $target + ); } if (strpos($target, '_moduledescription_') !== false + && $eventObj !== null && $eventObj->module() !== null ) { $target = str_replace( @@ -3969,6 +3977,12 @@ function events_get_response_target( io_safe_output($eventObjt->module()->description()), $target ); + } else { + $target = str_replace( + '_moduledescription_', + __('N/A'), + $target + ); } if (strpos($target, '_owner_user_') !== false) {