From 95c4a3c8d34fcbec6db14022980b1accd961bb7a Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Mon, 24 Sep 2012 10:14:07 +0000 Subject: [PATCH] [-] FO : fixed bug #PSCFV-4316 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17493 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/front/AddressController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/front/AddressController.php b/controllers/front/AddressController.php index 4ca6c002c..ce226b184 100644 --- a/controllers/front/AddressController.php +++ b/controllers/front/AddressController.php @@ -172,7 +172,7 @@ class AddressControllerCore extends FrontController $address->dni = null; } // Check if the alias exists - if (!empty($_POST['alias']) + if (!$this->context->customer->is_guest && !empty($_POST['alias']) && (int)$this->context->customer->id > 0 && Db::getInstance()->getValue(' SELECT count(*)