--- phpgwapi/inc/class.mime_magic.inc.php 16 Sep 2003 23:37:41 -0000 1.1.2.1 +++ phpgwapi/inc/class.mime_magic.inc.php 20 Nov 2003 12:53:45 -0000 @@ -99,10 +99,10 @@ * @return string The MIME type of the filename. * @author skwashd - changed it to make it work with file.tar.gz etc */ - function filename2mine($filename) + function filename2mime($filename) { $fn_parts = explode('.', $filename); - if (!is_array($fn_parts)) + if (is_array($fn_parts)) { $type = $this->ext2mime($fn_parts[count($fn_parts)-1]); if ($type != 'application/octect-stream')