From 6cc01b9b55c64e38ec287c71c1df15b1f561a112 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Sat, 3 Jul 2021 11:36:45 +0200 Subject: [PATCH] fix(composite): fix PHP warning Signed-off-by: Thierry Bugier --- inc/composite.class.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/inc/composite.class.php b/inc/composite.class.php index cdbe21b4f..f23c60b73 100644 --- a/inc/composite.class.php +++ b/inc/composite.class.php @@ -93,14 +93,13 @@ public function buildCompositeRelations() { case PluginFormcreatorTargetTicket::class: $ticket = $this->targets['PluginFormcreatorTargetTicket'][$row['items_id']]; - if ($ticket === null) { - continue; + if ($ticket !== null) { + $this->ticket_ticket->add([ + 'link' => $row['link'], + 'tickets_id_1' => $generatedObject->getID(), + 'tickets_id_2' => $ticket->getID(), + ]); } - $this->ticket_ticket->add([ - 'link' => $row['link'], - 'tickets_id_1' => $generatedObject->getID(), - 'tickets_id_2' => $ticket->getID(), - ]); break; } }