projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DataObjects/Images.php
[Pman.Core]
/
DataObjects
/
Images.php
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';
require_once 'System.php';
+ $file = $this->getStoreName();
+
+ if(!file_exists($file)){
+ return false;
+ }
+
switch ($this->mimetype) {
case 'application/pdf' :
switch ($this->mimetype) {
case 'application/pdf' :
- $file = $this->getStoreName();
-
- if(!file_exists($file)){
- return false;
- }
-
$pdftk = System::which('pdftk');
if (empty($pdftk)) {
$pdftk = System::which('pdftk');
if (empty($pdftk)) {