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

This commit is contained in:
Ralf Becker 2014-01-08 08:58:57 +00:00
parent 4d52be1f1c
commit 7b7132314c

View File

@ -695,7 +695,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();
}