mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
CreateTicketLinks: Variable $ticket
is always set, but can be emtpy
This commit is contained in:
parent
4d3765b22f
commit
01b93024f6
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user