Update to default value - set it both when value is null or empty string.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8613 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ucorina 2011-07-20 09:54:07 +00:00
parent 98a85cdaa9
commit 8b9468a165
3 changed files with 12 additions and 2 deletions

View file

@ -77,7 +77,7 @@
}
function ensureDefaultValue($default_value){
if(!isset($this->value))
if(!isset($this->value) || $this->value == '')
$this->value = $default_value;
}