Take care 0 is send as first position so use false in condition

This commit is contained in:
Michael RICOIS 2012-05-29 15:44:15 +00:00
parent 2254b415cf
commit 1f7158d2b1

View File

@ -89,9 +89,9 @@ class IndexController extends Zend_Controller_Action
$fields = new Scores_Fields();
if ($posInList) {
if ($posInList!==false) {
$fields->unsetCritereValue($nameCritereToDelete, $posInList);
} elseif ($posExList) {
} elseif ($posExList!==false) {
$fields->unsetCritereValue($nameCritereToDelete, $posExList, true);
} else {
$fields->unsetCritere($nameCritereToDelete);