From 1ad3b9d49db068b3954c7e05fba2320038d0698b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20T=C3=A4nzer?= Date: Tue, 7 Sep 2010 23:05:31 +0200 Subject: [PATCH] Fix Bug #861: set flags - set of flags different to - admin console flags under testserver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- manager/application/controllers/ManageAccountController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manager/application/controllers/ManageAccountController.php b/manager/application/controllers/ManageAccountController.php index e900d72..b07285b 100644 --- a/manager/application/controllers/ManageAccountController.php +++ b/manager/application/controllers/ManageAccountController.php @@ -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); }