projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9d2b809
)
DataObjects/Images.php
author
Edward
<edward@roojs.com>
Tue, 7 Aug 2018 05:34:12 +0000
(13:34 +0800)
committer
Edward
<edward@roojs.com>
Tue, 7 Aug 2018 05:34:12 +0000
(13:34 +0800)
DataObjects/Images.php
patch
|
blob
|
history
diff --git
a/DataObjects/Images.php
b/DataObjects/Images.php
index
c02df4e
..
e38349f
100644
(file)
--- a/
DataObjects/Images.php
+++ b/
DataObjects/Images.php
@@
-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;
}