mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-05-28 04:02:39 -04:00
CreateTicketLinks: Variable $ticket is always set, but can be emtpy
This commit is contained in:
parent
4d3765b22f
commit
01b93024f6
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue