DataObjects/Images.php
authorAlan Knowles <alan@roojs.com>
Thu, 28 Jun 2018 06:22:06 +0000 (14:22 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 28 Jun 2018 06:22:06 +0000 (14:22 +0800)
DataObjects/Images.php

index 041ad45..7558d16 100644 (file)
@@ -120,7 +120,8 @@ class Pman_Core_DataObjects_Images extends DB_DataObject
         
         $this->mimetype= strtolower($this->mimetype);
         
-        if (array_shift(explode('/', $this->mimetype)) == 'image') { 
+        $mta = explode('/', $this->mimetype)
+        if (array_shift($mta) == 'image') { 
         
             $imgs = @getimagesize($file);