Skip to content

Commit

Permalink
Evarisk#3612 [Accident] fix: foreach not on one line
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-micka committed Dec 14, 2023
1 parent 2bee932 commit ed4dc7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion view/accident/accident_card.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@
// Load tickets for selectarray instead of using selectTicketList(deprecated)
$tickets = saturne_fetch_all_object_type('Ticket');
$ticketsArray = [];
foreach($tickets as $ticketId => $ticketValue) $ticketsArray[$ticketId] = $ticketValue->ref;
foreach($tickets as $ticketId => $ticketValue) {
$ticketsArray[$ticketId] = $ticketValue->ref;
}

// Load object
$object->fetch($id);
Expand Down

0 comments on commit ed4dc7b

Please sign in to comment.