Correct Type in Purchase::Get_Order
authorRichard Whitehouse <github@richardwhiuk.com>
Fri, 4 Feb 2011 23:30:46 +0000 (23:30 +0000)
committerRichard Whitehouse <github@richardwhiuk.com>
Fri, 4 Feb 2011 23:30:46 +0000 (23:30 +0000)
index.php

index 11384b4edb9b5608c8c087ccce75fadcb17ed51f..9c49d7730f90805cf3eb2e75b610e0fa4c05c192 100644 (file)
--- a/index.php
+++ b/index.php
@@ -264,7 +264,7 @@ class Purchase {
 
 
        public function Get_By_Order($order){
-               if($order instanceof Type){
+               if($order instanceof Order){
                        $order = $order->id();
                }
                $query = 'SELECT `id`,`ticket`,`order`,`price`,`name` FROM `purchase` WHERE `order` = ?';