From: Richard Whitehouse Date: Fri, 4 Feb 2011 23:31:03 +0000 (+0000) Subject: Correct invocation for current tickets X-Git-Url: https://git.richardwhiuk.com/?a=commitdiff_plain;h=c71eb8b4b6fb81ddcae5b0a83feaae8f995945b9;p=hmb.git Correct invocation for current tickets --- diff --git a/pages/index.php b/pages/index.php index 1025fa7..ddaa9be 100644 --- a/pages/index.php +++ b/pages/index.php @@ -34,11 +34,10 @@ class Page_Index extends Page { $current = Order::Get_Unconfirmed_By_User($system->user()); $template->new = array(); - if($current != null){ - $purchases = Purchase::Get_By_Order($o); - + $purchases = Purchase::Get_By_Order($current); + foreach($purchases as $p){ $template->new[$p->id()] = array( 'name' => $o->name(),