mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 04:32:01 +02:00
Fix template array issue.
This commit is contained in:
parent
9e8d238894
commit
ce7c07ffda
@ -1977,13 +1977,13 @@ class e107
|
||||
|
||||
|
||||
// if(!$merge || !$override || !is_array($ret)) // problems merging when template doesn't exist in core.
|
||||
//XXX This appears to have less problems, but requires more testing.
|
||||
if(!$merge && !$override)
|
||||
|
||||
if((!$merge && !$override) || is_string($ret)) //XXX This appears to have less problems, but requires more testing.
|
||||
{
|
||||
return $ret;
|
||||
}
|
||||
|
||||
if(!is_array($ret))
|
||||
if(!is_array($ret)) // for the merge below.
|
||||
{
|
||||
$ret = array();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user