(mvc) empty() <> ""

This commit is contained in:
Ad Schellevis 2016-02-10 16:33:52 +01:00
parent d92af436ff
commit 78366339ed

View File

@ -275,7 +275,7 @@ abstract class BaseField
public function setValue($value)
{
// if first set, store initial value
if ($this->internalInitialValue === false && !empty($value)) {
if ($this->internalInitialValue === false && $value != "") {
$this->internalInitialValue = $value;
}
$this->internalValue = $value;