X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fitems_cart.inc;h=2178fba1dfe5a467d34df7cc01b8bcdc77d2d720;hb=4cf1c3dbb9ae74e0c47dda456f7ac97c7659b3fa;hp=f4d223a2dd4c56a5d3645aae684ebfb7bec8a870;hpb=818719f38b8327cdca616d58b13913dbd174d96a;p=fa-stable.git diff --git a/includes/ui/items_cart.inc b/includes/ui/items_cart.inc index f4d223a2..2178fba1 100644 --- a/includes/ui/items_cart.inc +++ b/includes/ui/items_cart.inc @@ -1,13 +1,13 @@ . + See the License here . ***********************************************************************/ include_once($path_to_root . "/includes/prefs/sysprefs.inc"); include_once($path_to_root . "/inventory/includes/inventory_db.inc"); @@ -76,7 +76,7 @@ class items_cart function remove_from_cart($line_no) { - unset($this->line_items[$line_no]); + array_splice($this->line_items, $line_no, 1); } function count_items() @@ -132,7 +132,7 @@ class items_cart { if (isset($index)) { - unset($this->gl_items[$index]); + array_splice($this->gl_items, $line_no, 1); } }