From 0fc773514408831a03c5d9a83475c853143197cb Mon Sep 17 00:00:00 2001 From: Richard Whitehouse Date: Fri, 4 Feb 2011 15:14:20 +0000 Subject: [PATCH] Bug fix. --- pages/index.php | 5 ++--- templates/index.php | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/index.php b/pages/index.php index 0bdd559..2490720 100644 --- a/pages/index.php +++ b/pages/index.php @@ -55,16 +55,15 @@ class Page_Index extends Page { $types = Type::Get_All(); $template->types = array(); - foreach($types as $type){ - $template->types[$type->id()] == array( + $template->types[$type->id()] = array( 'name' => $type->name(), 'price' => $type->price(), 'tickets_left' => $type->left() ); } - $templates->add = $system->url('add'); + $template->add = $system->url('add'); $system->database()->commit(); diff --git a/templates/index.php b/templates/index.php index 801e7bb..3ecd656 100644 --- a/templates/index.php +++ b/templates/index.php @@ -17,6 +17,7 @@ class Template_Index extends Template { '; print_r($this); echo ''; } } -- 2.34.1