parse_cli_arguments avec fonction param dans env
[mtweb] / mw / app / data / modules / share / mw_data_images.php
index c540972..48ceeee 100644 (file)
@@ -3,7 +3,7 @@
   class mw_data_images extends mw_data{
 
     function img_size($file, $max_width, $max_height){
-      $img_infos = getimagesize($file);
+      $img_infos = @getimagesize($file);
       $img_size = array();
       if($img_infos){
         if($img_infos[0] > $max_width || $img_infos[1] > $max_height){
@@ -23,5 +23,3 @@
     }
 
   }
-
-?>
\ No newline at end of file