can NOT use empty($idx) as it is true for 0 too!

This commit is contained in:
Ralf Becker 2014-01-08 08:58:32 +00:00
parent c3fc9d9c2a
commit 2b9d56c7f0

View File

@ -653,7 +653,7 @@ class boetemplate extends soetemplate
}
if (is_object($idx)) return false; // given an error in php5.2
if (empty($idx))
if ((string)$idx === '')
{
$idxs = array();
}