Skip to content

Commit

Permalink
fix(composite): fix PHP warning
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jul 19, 2021
1 parent 9156183 commit 6cc01b9
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions inc/composite.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 6cc01b9

Please sign in to comment.