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

index c02df4e..e38349f 100644 (file)
@@ -755,7 +755,8 @@ class Pman_Core_DataObjects_Images extends DB_DataObject
         
         $ext = $y->toExt(trim((string) $this->mimetype ));
         
-        if(array_pop(explode('.', $this->filename)) != $ext){
+        $explode_filename = explode('.', $this->filename);
+        if(array_pop($explode_filename) != $ext){
             $this->filename = $this->filename .'.'. $ext; 
         }