mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 23:03:25 +09:00
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:
parent
98a85cdaa9
commit
8b9468a165
3 changed files with 12 additions and 2 deletions
|
|
@ -77,7 +77,7 @@
|
|||
}
|
||||
|
||||
function ensureDefaultValue($default_value){
|
||||
if(!isset($this->value))
|
||||
if(!isset($this->value) || $this->value == '')
|
||||
$this->value = $default_value;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue