Fix ticket allocation
authorRichard Whitehouse <richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 23:22:37 +0000 (23:22 +0000)
committerRichard Whitehouse <richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 23:22:37 +0000 (23:22 +0000)
index.php

index 451c37ec2a33aac76bc6c7b173621ad5e8a1a9f2..bfa8b08b80141fc497770eabc0bebc34836a52af 100644 (file)
--- a/index.php
+++ b/index.php
@@ -225,6 +225,7 @@ class Ticket {
                }
                $ticket = new Ticket($id, $type, $status);
                $query = 'UPDATE `ticket` SET `status` = 1 WHERE `id` = ?';
+               $stmt = Ticketing::Get()->database()->prepare($query);
                $stmt->bind_param('i', $id);
                $stmt->execute();
                return $ticket;