// Context part 31

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8087 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-08-17 10:07:12 +00:00
parent b8706ddd8a
commit cb3d802346
57 changed files with 200 additions and 165 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ if (!$id_product = (int)(Tools::getValue('id_product')))
die ('0');
$id_product_attribute = (int)(Tools::getValue('id_product_attribute'));
if (!$cookie->isLogged())
if (!Context::getContext()->customer->isLogged())
{
$customer_email = trim(Tools::getValue('customer_email'));
if (empty($customer_email) OR !Validate::isEmail($customer_email))
@@ -53,7 +53,7 @@ if (!$cookie->isLogged())
}
else
{
$id_customer = (int)($cookie->id_customer);
$id_customer = (int)Context::getContext()->customer->id;
$customer_email = 0;
}