Fix Bug #861: set flags - set of flags different to - admin console flags
under testserver Values from the data base are retrieved as String no matter what type they have in the db. Therefore the typed comparison with an integer always failed. Signed-off-by: Michael Tänzer <neo@nhng.de>
This commit is contained in:
parent
56d5f89b28
commit
1ad3b9d49d
1 changed files with 1 additions and 1 deletions
|
@ -443,7 +443,7 @@ class ManageAccountController extends Zend_Controller_Action
|
|||
foreach ($labels as $flag => $label) {
|
||||
$checkbox = new Zend_Form_Element_Checkbox($flag);
|
||||
$checkbox->setLabel($label)
|
||||
->setChecked($row[$flag] === 1);
|
||||
->setChecked($row[$flag] === '1');
|
||||
$form->addElement($checkbox);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue