  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: account.php 387 2006-01-18 16:49:58Z hpdl $ |
| |
| 3 | + | $Id: account.php 418 2006-01-28 12:46:34Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
39 | 39 | | } |
| |
40 | 40 | | |
| |
41 | 41 | | function createEntry($data) { |
  |
42 | | - | global $osC_Database, $osC_Session, $osC_Language, $osC_Customer, $osC_NavigationHistory; |
| |
| 42 | + | global $osC_Database, $osC_Session, $osC_Language, $osC_ShoppingCart, $osC_Customer, $osC_NavigationHistory; |
|
43 | 43 | | |
| |
44 | 44 | | $osC_Database->startTransaction(); |
| |
45 | 45 | | |
| |
|
|
 |
… |
|
76 | 76 | | $osC_Customer->setCustomerData($customer_id); |
| |
77 | 77 | | |
| |
78 | 78 | | // restore cart contents |
  |
79 | | - | $_SESSION['cart']->restore_contents(); |
| |
| 79 | + | $osC_ShoppingCart->synchronizeWithDatabase(); |
  |
80 | 80 | | |
| |
81 | 81 | | $osC_NavigationHistory->removeCurrentPage(); |
| |
82 | 82 | | |