From dcd7af504dda141f4652f0e8cf9b45db00a96ccc Mon Sep 17 00:00:00 2001 From: Richard Whitehouse Date: Fri, 4 Feb 2011 23:35:08 +0000 Subject: [PATCH] Correct function calls for purchase info --- pages/index.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pages/index.php b/pages/index.php index ddaa9be..6bcb10d 100644 --- a/pages/index.php +++ b/pages/index.php @@ -18,15 +18,14 @@ class Page_Index extends Page { $template->previous[$o->id()] = array( 'number' => $o->id(), - 'paid' => $o->paid(), - 'url' => $system->url('order',$o->id()) + 'paid' => $o->paid() ); foreach($purchases as $p){ $template->previous[$o->id()]['purchases'][$p->id()] = array( 'name' => $o->name(), 'price' => $o->price(), - 'dining' => $o->dining() + 'type' => $o->type() ); } } @@ -42,7 +41,7 @@ class Page_Index extends Page { $template->new[$p->id()] = array( 'name' => $o->name(), 'price' => $o->price(), - 'dining' => $o->dining(), + 'type' => $o->type(), 'delete' => $system->url('delete', $p->id()) ); } -- 2.34.1