projects
/
hmb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e42633e
)
Correct Type in Purchase::Get_Order
author
Richard Whitehouse
<github@richardwhiuk.com>
Fri, 4 Feb 2011 23:30:46 +0000
(23:30 +0000)
committer
Richard Whitehouse
<github@richardwhiuk.com>
Fri, 4 Feb 2011 23:30:46 +0000
(23:30 +0000)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/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` = ?';