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:
Michael Tänzer 2010-09-07 23:05:31 +02:00
parent 56d5f89b28
commit 1ad3b9d49d

View file

@ -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);
}