diff --git a/application/views/helpers/CreateTicketLinks.php b/application/views/helpers/CreateTicketLinks.php index 4f8a27249..dda55a654 100644 --- a/application/views/helpers/CreateTicketLinks.php +++ b/application/views/helpers/CreateTicketLinks.php @@ -17,7 +17,7 @@ class Zend_View_Helper_CreateTicketLinks extends Zend_View_Helper_Abstract public function createTicketLinks($text) { $tickets = $this->view->tickets; - /** @var \Icinga\Application\Hook\TicketHook $tickets */ - return isset($tickets) ? $tickets->createLinks($text) : $text; + /** @var \Icinga\Application\Hook\TicketHook|array|null $tickets */ + return ! empty($tickets) ? $tickets->createLinks($text) : $text; } }