// fixed little issue on wishlist

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16506 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
aFolletete
2012-07-20 12:42:53 +00:00
parent 4f9c604d33
commit c766c393a1
+2
View File
@@ -65,6 +65,8 @@ if ($context->customer->isLogged())
$wishlist = new WishList();
$wishlist->name = $name;
$wishlist->id_customer = (int)$context->customer->id;
$wishlist->id_shop = $context->shop->id;
$wishlist->id_shop_group = $context->shop->id_shop_group;
list($us, $s) = explode(' ', microtime());
srand($s * $us);
$wishlist->token = strtoupper(substr(sha1(uniqid(rand(), true)._COOKIE_KEY_.$context->customer->id), 0, 16));