
Originally Posted by
lat9
See your /admin/customers.php, starting at line 401:

Thanks... My head is spinning with all this code stuff. This is off a clean download of ZC 1.5.5d
The corresponding lines (from 401) in 1.5.5b are:
Code:
$db->Execute("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . "
where customers_id = '" . (int)$customers_id . "'");
$db->Execute("delete from " . TABLE_WHOS_ONLINE . "
where customer_id = '" . (int)$customers_id . "'");
zen_record_admin_activity('Customer with customer ID ' . (int)$customers_id . ' deleted.', 'warning');
And in 1.5.5d
Code:
$db->Execute("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . "
where customers_id = '" . (int)$customers_id . "'");
$db->Execute("delete from " . TABLE_WHOS_ONLINE . "
where customer_id = '" . (int)$customers_id . "'");
$db->Execute("delete from " . TABLE_PRODUCTS_NOTIFICATIONS . " where customers_id = " . $customer_id);
zen_record_admin_activity('Customer with customer ID ' . (int)$customers_id . ' deleted.', 'warning');
So the line:-
Code:
$db->Execute("delete from " . TABLE_PRODUCTS_NOTIFICATIONS . " where customers_id = " . $customer_id);
Seems to have been added in for 1.5.5d
Case for a bug report?
Bookmarks