From 11205a310b97b65910cdb23e1b5c20f52da42014 Mon Sep 17 00:00:00 2001 From: Damien LASSERRE Date: Wed, 25 Jan 2012 09:01:02 +0000 Subject: [PATCH] session condition fausse --- application/controllers/ComptageController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/ComptageController.php b/application/controllers/ComptageController.php index 51ff4819..e2f55228 100644 --- a/application/controllers/ComptageController.php +++ b/application/controllers/ComptageController.php @@ -15,7 +15,7 @@ class ComptageController extends Zend_Controller_Action $valeur = $request->getParam('valeur'); $sessionValeur = $session->getCritere($key); - if(!empty($sessionValeur) && empty($valeur)) { + if($sessionValeur == "" && empty($valeur)) { $session->unsetCritere($key); } else { $session->setCritere($key, $valeur);