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>
bug-1390
Michael Tänzer 14 years ago
parent 56d5f89b28
commit 1ad3b9d49d

@ -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…
Cancel
Save