wrong argument to get_mime_info function
[phpfspot.git] / phpfspot.class.php
index 943c57af1b4a4e9659aff17f32efd3601dccf8c0..094746c0bef16097794697aed7675794b650cafd 100644 (file)
@@ -3004,7 +3004,7 @@ class PHPFSPOT {
     */
    public function get_mime_info($file)
    {
     */
    public function get_mime_info($file)
    {
-      $details = getimagesize($orig_image);
+      $details = getimagesize($file);
 
       /* if getimagesize() returns empty, try at least to find out the
          mime type.
 
       /* if getimagesize() returns empty, try at least to find out the
          mime type.