projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a476870
)
DataObjects/Images.php
author
edward
<edward@roojs.com>
Thu, 21 Jan 2016 05:40:58 +0000
(13:40 +0800)
committer
edward
<edward@roojs.com>
Thu, 21 Jan 2016 05:40:58 +0000
(13:40 +0800)
DataObjects/Images.php
patch
|
blob
|
history
diff --git
a/DataObjects/Images.php
b/DataObjects/Images.php
index
acf0e5c
..
fa610d6
100644
(file)
--- a/
DataObjects/Images.php
+++ b/
DataObjects/Images.php
@@
-707,8
+707,8
@@
class Pman_Core_DataObjects_Images extends DB_DataObject
if (array_shift(explode('/', $this->mimetype)) == 'image') {
- $imgs = @getimagesize($
file
);
- print_R($imgs);exit;
+ $imgs = @getimagesize($
data
);
+
if (!empty($imgs) && !empty($imgs[0]) && !empty($imgs[1])) {
list($this->width , $this->height) = $imgs;
}