mirror of
https://github.com/itflow-org/itflow
synced 2026-03-09 15:24:51 +00:00
replace all instances of mysqli_fetch_array with mysqli_fetch_assoc for better performance and memory usage
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
<th>Add to Invoice</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<?php while ($row = mysqli_fetch_array($sql_tickets_billable)) {
|
||||
<?php while ($row = mysqli_fetch_assoc($sql_tickets_billable)) {
|
||||
$ticket_id = intval($row['ticket_id']);
|
||||
$ticket_subject = nullable_htmlentities($row['ticket_subject']);
|
||||
$ticket_number = intval($row['ticket_number']);
|
||||
@@ -44,7 +44,7 @@
|
||||
<a href="ticket.php?ticket_id=<?php echo $ticket_id; ?>">
|
||||
<span class="badge badge-pill <?php echo $ticket_status_class?> p-3"><?php echo "$ticket_prefix$ticket_number"; ?></span>
|
||||
</a>
|
||||
</td>
|
||||
</td>
|
||||
<td><?php echo $ticket_subject ?></td>
|
||||
<td><a href='ticket.php?ticket_id=<?php echo $ticket_id?>&invoice_id=<?php echo $invoice_id?>#addInvoiceFromTicketModal'>
|
||||
<i class="fas fa-fw fa-plus-circle"></i></td>
|
||||
@@ -56,4 +56,3 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user