aboutsummaryrefslogtreecommitdiff
path: root/include/offers-view.php
diff options
context:
space:
mode:
authorCamil Staps2016-08-01 11:46:29 +0200
committerCamil Staps2016-08-01 11:46:29 +0200
commit0df155ce92219d7722a81dc7c8808660655d83bf (patch)
tree6b33d1c0aa67834a01d6d30e60ed391fe4ac0a35 /include/offers-view.php
parentRequire paths (diff)
Several fixes
Diffstat (limited to 'include/offers-view.php')
-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>