diff --git a/modules/monitoring/library/Monitoring/Command/Transport/ApiCommandTransport.php b/modules/monitoring/library/Monitoring/Command/Transport/ApiCommandTransport.php index bca3f80a1..6dc5fea24 100644 --- a/modules/monitoring/library/Monitoring/Command/Transport/ApiCommandTransport.php +++ b/modules/monitoring/library/Monitoring/Command/Transport/ApiCommandTransport.php @@ -215,7 +215,9 @@ class ApiCommandTransport implements CommandTransportInterface ); } $result = array_pop($response['results']); - if ($result['code'] < 200 || $result['code'] >= 300) { + if (! empty($result) + && ($result['code'] < 200 || $result['code'] >= 300) + ) { throw new CommandTransportException( 'Can\'t send external Icinga command: %u %s', $result['code'],