projects
/
hmb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
568335a
)
Fixed Purchase Insert
author
Richard Whitehouse
<richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 19:01:57 +0000
(19:01 +0000)
committer
Richard Whitehouse
<richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 19:01:57 +0000
(19:01 +0000)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index eecc013aca4cf099ea296056dca873055a3b149c..3f93a6b42700e628903514280aa59e1517f4e149 100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-302,9
+302,9
@@
class Order {
public static function Unconfirmed_By_User($user){
$order = Order::Get_Unconfirmed_By_User($user);
if($order == null){
- $query = 'INSERT INTO `order` SET `user` = ?
AND `status` = 0 AND
time = ?';
+ $query = 'INSERT INTO `order` SET `user` = ?
, `status` = 0,
time = ?';
$stmt = Ticketing::Get()->database()->prepare($query);
- $time = time();
+ $time = time();
$stmt->bind_param('si', $user, $time);
$stmt->execute();
$order = new Order($stmt->insert_id, $user, $time, 0);