при удаление заказа в админке возникает такая вот ошибка
Notice: Undefined index: subtract in /home/***/domains/***/public_html/admin/model/sale/order.php on line 12Warning: Cannot modify header information - headers already sent by (output started at /home/***/domains/***/public_html/admin/index.php:72) in /home/***/domains/***/public_html/system/engine/controller.php on line 27
хоть и при обновление страници заказ всё же удалится но хотелось бы исправить это. кто поможет понять в чём проблемаПС
/home/***/domains/***/public_html/admin/model/sale/order.php on line 12
12-if ($product['subtract']) {
13-$this->db->query("UPDATE `" . DB_PREFIX . "product` SET quantity = (quantity + " . (int)$product['quantity'] . ") WHERE product_id = '" . (int)$product['product_id'] . "'");
14
15-$option_query = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_option WHERE order_id = '" . (int)$order_id . "' AND order_product_id = '" . (int)$product['order_product_id'] . "'");
16
17-foreach ($option_query->rows as $option) {
18-$this->db->query("UPDATE " . DB_PREFIX . "product_option_value SET quantity = (quantity + " . (int)$product['quantity'] . ") WHERE product_option_value_id = '" . 19-(int)$option['product_option_value_id'] . "' AND subtract = '1'");
20-}
/home/***/domains/***/public_html/system/engine/controller.php on line 27
26-protected function redirect($url) {
27-header('Location: ' . str_replace('&', '&', $url));
28-exit();
29-}