XF\Template\Templater::filterReplace() redundant code?

G

gigipmc

Guest
Member
Not a bug but I guess can be cleaned up: XF\Template\Templater::filterReplace() contains the following code:

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..
XF\Template\Templater::filterReplace() redundant code?

free plugins
minecraft paid for free
mcmarket
mc-market
free minecraft paid plugins
free minecraft plugins
spigotmc
SpigotMC
aac free
ewg free
Minecraft Premium Plugins
ewg free download
litebans free
epicworldgenerator free
free schematics
leaked schematics minecraft
schematics
schematics leaked
schematics free
minecraft schematics free
paid minecraft schematics free
paid minecraft schematics for free
free cracked plugins
free cracked minecraft plugins
plugins
featherboard download
featherboard plugin download
antiaura download
xenforo leaked
xenforo for free
xenforo addons
 
BlackSpigot General Chat
Rules Help Users
    C @ CuteBunny765: Download kese karo is ko
    Top