minor bug fixes
Foaly* [Mon, 7 Apr 2014 22:19:17 +0000 (23:19 +0100)]
function.admin_imagelist_tab.php
lib/class.imagecompressor_utils.php

index b3da26f..32543c0 100644 (file)
@@ -56,7 +56,7 @@ if(count($filelist) == 0)
 }
 else
 {      
-       usort($filelist, array(imagecompressor_utils, 'sort_files_by_date'));
+       usort($filelist, array('imagecompressor_utils', 'sort_files_by_date'));
 
        $smarty->assign('files', array_values($filelist));
        $smarty->assign('mod', $this);
index 11bd714..d445aad 100644 (file)
@@ -107,7 +107,7 @@ class imagecompressor_utils {
                if(function_exists('exif_imagetype'))
                {
                        $info = @exif_imagetype($path);
-                       if($info & (IMAGETYPE_GIF | IMAGETYPE_JPEG | IMAGETYPE_PNG))
+                       if($info & in_array($info, array(IMAGETYPE_GIF | IMAGETYPE_JPEG | IMAGETYPE_PNG)))
                        {
                                return true;
                        }