fixed first row with index="0" got displayed wired eg. in file selection popup, caused by empty("0") === true

This commit is contained in:
Ralf Becker 2013-10-31 08:34:14 +00:00
parent 34e5d01de4
commit e4e3627cdc

View File

@ -1059,7 +1059,7 @@ class etemplate_old extends boetemplate
}
$form_name = self::form_name($cname,$name);
if (!empty($name))
if ((string)$name !== '')
{
$value = $this->get_array($content,$name);
}