From f6447abf597ee64b0f020848d10a6d83f3e32e7e Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Sun, 21 Dec 2014 18:13:15 -0600 Subject: [PATCH] Fixing Issue 79 --- indefero/src/IDF/FileUtil.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indefero/src/IDF/FileUtil.php b/indefero/src/IDF/FileUtil.php index fb26623..e81eead 100644 --- a/indefero/src/IDF/FileUtil.php +++ b/indefero/src/IDF/FileUtil.php @@ -154,7 +154,7 @@ class IDF_FileUtil $info['basename'], 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"]]; return $res;