Fix Bug #861: set flags - set of flags different to - admin console flags
authorMichael Tänzer <neo@nhng.de>
Tue, 7 Sep 2010 21:05:31 +0000 (23:05 +0200)
committerMichael Tänzer <neo@nhng.de>
Tue, 7 Sep 2010 21:05:31 +0000 (23:05 +0200)
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>
manager/application/controllers/ManageAccountController.php

index e900d72..b07285b 100644 (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);
         }