Skip to content

Commit 2108983

Browse files
committed
fix(composite): php warning breaks JSON if a ticket is not generated
1 parent da8929e commit 2108983

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

inc/composite.class.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ public function buildCompositeRelations() {
115115
break;
116116

117117
case PluginFormcreatorTargetTicket::class:
118-
$ticket = $this->targets['PluginFormcreatorTargetTicket'][$row['items_id']];
118+
$ticket = null;
119+
if (isset($this->targets['PluginFormcreatorTargetTicket'][$row['items_id']])) {
120+
$ticket = $this->targets['PluginFormcreatorTargetTicket'][$row['items_id']];
121+
}
119122
if ($ticket !== null) {
120123
$this->ticket_ticket->add([
121124
'link' => $row['link'],

0 commit comments

Comments
 (0)