From 7954bc4052ad43c199df476a3aef68f944b27374 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 17 Feb 2010 00:54:33 +0000 Subject: [PATCH] BUGFIX Fixed variable existence checks in setValue() in FormField::__construct() by checking for !== NULL (changed from isset($value) to $value in r99360) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@99394 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/FormField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms/FormField.php b/forms/FormField.php index 08ce37b82..038c5d612 100755 --- a/forms/FormField.php +++ b/forms/FormField.php @@ -75,7 +75,7 @@ class FormField extends RequestHandler { $this->name = $name; $this->title = ($title === null) ? $name : $title; - if($value) $this->setValue($value); + if($value !== NULL) $this->setValue($value); if($form) $this->setForm($form); parent::__construct();