aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/offers-view.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/offers-view.php b/include/offers-view.php
index ec7acf9..56359ae 100644
--- a/include/offers-view.php
+++ b/include/offers-view.php
@@ -123,7 +123,7 @@ $_offer = new Offer($_pdo, $_id);
<tbody>
<?php
$payment = $_offer->getPayment();
- $payments = [$payment];
+ $payments = is_null($payment) ? [] : [$payment];
foreach ($payments as $payment) {
echo "<tr>
<td class='col-min-width'>{$payment->id}</td>