Fixed access rights bug in add page
authorRichard Whitehouse <richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 18:45:24 +0000 (18:45 +0000)
committerRichard Whitehouse <richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 18:45:24 +0000 (18:45 +0000)
pages/add.php

index b4a34c0869437d74d79c63bf365ef8cb1d5a9d3d..b5ff1eb20b2a1708a9fa38b5702444e8d537a055 100644 (file)
@@ -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'));
                                }
                        }