From 0873d1d5686901b42c6c2c88b00114cacad22d79 Mon Sep 17 00:00:00 2001 From: peter Date: Sun, 23 Mar 2008 18:28:43 +0000 Subject: [PATCH] - added method to destroy cart git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@139 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- www/inc/classes/cart.php | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/www/inc/classes/cart.php b/www/inc/classes/cart.php index 2f41c87..f086160 100644 --- a/www/inc/classes/cart.php +++ b/www/inc/classes/cart.php @@ -284,8 +284,10 @@ class Cart { global $db; if ($this->isValid()) { + $db->beginTransaction(); $db->deleteRows("cart_ticket", "cartid=".$db->escapeInt($this->cartid)); $db->deleteRows("cart", "cartid=".$db->escapeInt($this->cartid)); + $db->commitTransaction(); } } -- 1.7.2.5