Fixing Issue 79

This commit is contained in:
Nathan Adams 2014-12-21 18:13:15 -06:00
parent ec8d6e93ea
commit f6447abf59

View File

@ -154,7 +154,7 @@ class IDF_FileUtil
$info['basename'], $info['basename'],
isset($info['extension']) ? $info['extension'] : 'bin'); isset($info['extension']) ? $info['extension'] : 'bin');
if (array_key_exists($info["extension"], $ext_hack)) if ($info && isset($info["extension"]) && array_key_exists($info["extension"], $ext_hack))
{ {
$res[0] = $ext_hack[$info["extension"]]; $res[0] = $ext_hack[$info["extension"]];
return $res; return $res;