Take care 0 is send as first position so use false in condition
This commit is contained in:
parent
2254b415cf
commit
1f7158d2b1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user