DataObjects/Images.php
authorEdward <edward@roojs.com>
Tue, 7 Aug 2018 05:34:34 +0000 (13:34 +0800)
committerEdward <edward@roojs.com>
Tue, 7 Aug 2018 05:34:34 +0000 (13:34 +0800)
DataObjects/Images.php

index e38349f..1250f51 100644 (file)
@@ -773,7 +773,9 @@ class Pman_Core_DataObjects_Images extends DB_DataObject
         
         $this->mimetype= strtolower($this->mimetype);
         
-        if (array_shift(explode('/', $this->mimetype)) == 'image') { 
+        $explode_mimetype = explode('/', $this->mimetype);
+        
+        if (array_shift($explode_mimetype) == 'image') { 
         
             $imgs = @getimagesize($data);