diff options
author | Camil Staps | 2016-08-01 11:46:29 +0200 |
---|---|---|
committer | Camil Staps | 2016-08-01 11:46:29 +0200 |
commit | 0df155ce92219d7722a81dc7c8808660655d83bf (patch) | |
tree | 6b33d1c0aa67834a01d6d30e60ed391fe4ac0a35 /include/offers-view.php | |
parent | Require paths (diff) |
Several fixes
Diffstat (limited to 'include/offers-view.php')
-rw-r--r-- | include/offers-view.php | 2 |
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> |