diff --git a/admin_customers.php b/admin_customers.php index a7cfca87..4e4c931d 100644 --- a/admin_customers.php +++ b/admin_customers.php @@ -196,7 +196,7 @@ if($page == 'customers' // Delete all waiting "create user" -tasks for this user, #276 // Note: the WHERE selects part of a serialized array, but it should be safe this way - $db->query("DELETE FROM `" . TABLE_PANEL_TASKS . "` WHERE `type` = '2' AND `data` LIKE '%;\"" . $db->escape($result['loginname']) . "\"%;';"); + $db->query("DELETE FROM `" . TABLE_PANEL_TASKS . "` WHERE `type` = '2' AND `data` LIKE '%:\"" . $db->escape($result['loginname']) . "\";%';"); // remove everything APS-related, #216 $apsresult = $db->query("SELECT `ID` FROM `".TABLE_APS_INSTANCES."` WHERE `CustomerID`='".(int)$id."'");