From e4e3627cdcf2268d68f62a6c0807db6f7652ced1 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 31 Oct 2013 08:34:14 +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_old.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.etemplate_old.inc.php b/etemplate/inc/class.etemplate_old.inc.php index 965839b864..2a2d8d12ae 100644 --- a/etemplate/inc/class.etemplate_old.inc.php +++ b/etemplate/inc/class.etemplate_old.inc.php @@ -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); }