From a9f7f81dbb24965249ef0e08b5fffc9ad62fbf84 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 --- 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(*)