projects
/
hmb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea99045
)
Bugfix for Ticket::Get
author
Richard Whitehouse
<richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 23:42:14 +0000
(23:42 +0000)
committer
Richard Whitehouse
<richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 23:42:14 +0000
(23:42 +0000)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index d8fb1651a789ac2412e5c18b7f37a4de8b244116..7ee4af7e2a00afcf7c5066ee5019a4d94b730eda 100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-215,7
+215,7
@@
class Ticket {
public static function Get($id){
$query = 'SELECT `id`,`type`,`status` FROM `ticket` WHERE `id` = ? LIMIT 1';
$stmt = Ticketing::Get()->database()->prepare($query);
- $stmt->bind_param('i', $
type
);
+ $stmt->bind_param('i', $
id
);
$stmt->execute();
$stmt->bind_result($id, $type, $status);
$ticket = null;