From: Richard Whitehouse Date: Fri, 4 Feb 2011 18:45:24 +0000 (+0000) Subject: Fixed access rights bug in add page X-Git-Url: https://git.richardwhiuk.com/?a=commitdiff_plain;h=568335a9ca0cd5056696f36713a49d753c5069a6;p=hmb.git Fixed access rights bug in add page --- diff --git a/pages/add.php b/pages/add.php index b4a34c0..b5ff1eb 100644 --- a/pages/add.php +++ b/pages/add.php @@ -44,7 +44,7 @@ class Page_Add extends Page { if(!$this->error){ $current = Order::Unconfirmed_By_User($system->user()); $current->order($type, $this->name); - $system->database->commit(); + $system->database()->commit(); header('Location: ' . $system->url('index')); } }