aboutsummaryrefslogtreecommitdiff
path: root/nav.php
diff options
context:
space:
mode:
authorCamil Staps2016-08-01 13:48:14 +0200
committerCamil Staps2016-08-01 13:53:12 +0200
commitefa2936ec538c236dcec71f419ad714524c7d2b9 (patch)
tree1d7e1903851fc4c37c72cf8ee8de006979bb8b4e /nav.php
parentPaypal not on by default in braintree (diff)
Removed BusinessAdmin::get* methods, added Model::search and
Model::count
Diffstat (limited to 'nav.php')
-rw-r--r--nav.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/nav.php b/nav.php
index d5995fc..b9501cb 100644
--- a/nav.php
+++ b/nav.php
@@ -45,7 +45,7 @@
</a>
<ul class="dropdown-menu dropdown-tasks">
<?php
- $offers = BusinessAdmin::getOffers($_pdo, array("`accepted`=1", "`start_date` <= CURDATE()", "`end_date` >= CURDATE()"));
+ $offers = Offer::search($_pdo, ["`accepted`=1", "`start_date` <= CURDATE()", "`end_date` >= CURDATE()"]);
$list = array();
foreach ($offers as $offer) {
$start = BusinessAdmin::formatDate($offer->start_date, false);