projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
710f61d
)
DataObjects/Images.php
author
Alan Knowles
<alan@roojs.com>
Thu, 28 Jun 2018 06:22:06 +0000
(14:22 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 28 Jun 2018 06:22:06 +0000
(14:22 +0800)
DataObjects/Images.php
patch
|
blob
|
history
diff --git
a/DataObjects/Images.php
b/DataObjects/Images.php
index
041ad45
..
7558d16
100644
(file)
--- a/
DataObjects/Images.php
+++ b/
DataObjects/Images.php
@@
-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);