From: Richard Whitehouse Date: Fri, 4 Feb 2011 23:22:37 +0000 (+0000) Subject: Fix ticket allocation X-Git-Url: https://git.richardwhiuk.com/?a=commitdiff_plain;h=272ddaf049cc5e5804ece97ea2d60812c4c2dff0;p=hmb.git Fix ticket allocation --- diff --git a/index.php b/index.php index 451c37e..bfa8b08 100644 --- 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;