From a1561618e92a950e75f3cef1bbe0d199a2ab8dcc Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Mon, 22 Feb 2010 20:11:35 +0000 Subject: [PATCH] fix sql-query in ticket::customerHasTickets(), fixes #26 --- lib/classes/ticket/class.ticket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/classes/ticket/class.ticket.php b/lib/classes/ticket/class.ticket.php index 9d5523da..a9ebcf16 100644 --- a/lib/classes/ticket/class.ticket.php +++ b/lib/classes/ticket/class.ticket.php @@ -637,7 +637,7 @@ class ticket { if($_cid != 0) { - $result = $_db->query('SELECT `id` FROM `' . TABLE_PANEL_TICKETS . '` WHERE `customer` ="'.(int)$_cid.'"'); + $result = $_db->query('SELECT `id` FROM `' . TABLE_PANEL_TICKETS . '` WHERE `customerid` ="'.(int)$_cid.'"'); $tickets = array(); while($row = $_db->fetch_array($result))