projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5c3880
)
DataObjects/Images.php
author
edward
<edward@roojs.com>
Fri, 10 Nov 2017 02:34:51 +0000
(10:34 +0800)
committer
edward
<edward@roojs.com>
Fri, 10 Nov 2017 02:34:51 +0000
(10:34 +0800)
DataObjects/Images.php
patch
|
blob
|
history
diff --git
a/DataObjects/Images.php
b/DataObjects/Images.php
index
127c66d
..
cc51a13
100644
(file)
--- a/
DataObjects/Images.php
+++ b/
DataObjects/Images.php
@@
-796,16
+796,16
@@
class Pman_Core_DataObjects_Images extends DB_DataObject
require_once 'System.php';
+ $file = $this->getStoreName();
+
+ if(!file_exists($file)){
+ return false;
+ }
+
switch ($this->mimetype) {
case 'application/pdf' :
- $file = $this->getStoreName();
-
- if(!file_exists($file)){
- return false;
- }
-
$pdftk = System::which('pdftk');
if (empty($pdftk)) {