ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 26,830
- Points
- 823
Reputation:
Not a bug but I guess can be cleaned up: XF\Template\Templater::filterReplace() contains the following code:
PHP:
How can the 2nd conditional ever come true when the first conditional just made sure $from is an array..
Continue reading...
PHP:
Code:
if (!is_array($from))
{
$from = [$from => $to];
}
if (!is_array($from))
{
return $value;
}
How can the 2nd conditional ever come true when the first conditional just made sure $from is an array..
Continue reading...