- added method to destroy cart
authorpeter <peter@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sun, 23 Mar 2008 18:28:43 +0000 (18:28 +0000)
committerpeter <peter@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sun, 23 Mar 2008 18:28:43 +0000 (18:28 +0000)
git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@139 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33

www/inc/classes/cart.php

index 2f41c87..f086160 100644 (file)
@@ -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();
                }
        }