fix sql-query in ticket::customerHasTickets(), fixes #26

This commit is contained in:
Michael Kaufmann (d00p)
2010-02-22 20:11:35 +00:00
parent c549e17795
commit a1561618e9

View File

@@ -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))