// 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
+4 -4
View File
@@ -73,7 +73,7 @@ function displayConfirm()
{
global $ppPayment;
if (!Context::getContext()->cookie->isLogged(true))
if (!Context::getContext()->customer->isLogged(true))
{
header('location:../../../'); exit;
die('Not logged');
@@ -109,7 +109,7 @@ function submitConfirm()
{
global $ppPayment;
if (!Context::getContext()->cookie->isLogged(true))
if (!Context::getContext()->customer->isLogged(true))
{
header('location:../../../'); exit;
die('Not logged');
@@ -128,7 +128,7 @@ function submitConfirm()
function validOrder()
{
global $ppPayment;
if (!Context::getContext()->cookie->isLogged(true))
if (!Context::getContext()->customer->isLogged(true))
{
header('location:../../../'); exit;
die('Not logged');
@@ -151,7 +151,7 @@ function validOrder()
// #####
// Process !!
if (!Context::getContext()->cookie->isLogged(true))
if (!Context::getContext()->customer->isLogged(true))
die('Not logged');
elseif (!Context::getContext()->cart->getOrderTotal(true, Cart::BOTH))
die('Empty cart');