From: peter Date: Sun, 23 Mar 2008 18:28:43 +0000 (+0000) Subject: - added method to destroy cart X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=0873d1d5686901b42c6c2c88b00114cacad22d79;p=web%2Fkonrad%2Fsmoke.git - added method to destroy cart git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@139 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- 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(); } }