From aff5641761b5fd00374b41704594e213269bf32a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 31 Oct 2013 08:31:12 +0000 Subject: [PATCH] fixed first row with index="0" got displayed wired eg. in file selection popup, caused by empty("0") === true --- etemplate/inc/class.etemplate.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.etemplate.inc.php b/etemplate/inc/class.etemplate.inc.php index 348a93de13..4fbfbca046 100644 --- a/etemplate/inc/class.etemplate.inc.php +++ b/etemplate/inc/class.etemplate.inc.php @@ -1082,7 +1082,7 @@ class etemplate extends boetemplate } $form_name = self::form_name($cname,$name); - if (!empty($name)) + if ((string)$name !== '') { $value = $this->get_array($content,$name); }