From 7d5c554ab27b9f97dd5730eea6666219423bb9ce Mon Sep 17 00:00:00 2001 From: dMetzger Date: Fri, 11 May 2012 12:37:30 +0000 Subject: [PATCH] // Details git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15219 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Validate.php | 2 +- controllers/front/ParentOrderController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Validate.php b/classes/Validate.php index 9de147573..2b0e54e46 100644 --- a/classes/Validate.php +++ b/classes/Validate.php @@ -407,7 +407,7 @@ class ValidateCore */ public static function isPasswd($passwd, $size = 5) { - return (Tools::strlen($passwd) > $size && Tools::strlen($passwd) < 255); + return (Tools::strlen($passwd) >= $size && Tools::strlen($passwd) < 255); } public static function isPasswdAdmin($passwd) diff --git a/controllers/front/ParentOrderController.php b/controllers/front/ParentOrderController.php index 55d58f572..25f902d71 100644 --- a/controllers/front/ParentOrderController.php +++ b/controllers/front/ParentOrderController.php @@ -109,7 +109,7 @@ class ParentOrderControllerCore extends FrontController } } else - $this->errors[] = Tools::displayError('Voucher name invalid.'); + $this->errors[] = Tools::displayError('This voucher does not exists'); } $this->context->smarty->assign(array( 'errors' => $this->errors,