Bug / Questionable code in the XFES plugin XF 2.1

Affected version
2.1

polyp2000

New member
In the following file :

../addons/XFES/Service/Optimizer.php

theres a check on line 38 that fails

if(!$config['mappings'])
{
return true;
}

If "mappings" is not in the $config array, it will throw an "Undefined Index" error

I've fixed this on my copy by changing it to :-

if(!isset($config['mappings']) || !$config['mappings'])
{
return true;
}

I cant imagine there are any implications to this but i thought i would let you know
so that i dont have to maintain my own patched build. Please could you patch the official XFES distrubution

Many Thanks

N
 
Top