aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Thumbs/Pdf.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Thumbs/Pdf.php')
-rw-r--r--Zotlabs/Thumbs/Pdf.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/Zotlabs/Thumbs/Pdf.php b/Zotlabs/Thumbs/Pdf.php
index 5d413140f..98bcf11b5 100644
--- a/Zotlabs/Thumbs/Pdf.php
+++ b/Zotlabs/Thumbs/Pdf.php
@@ -19,10 +19,10 @@ class Pdf {
$istream = fopen($file,'rb');
$ostream = fopen($tmpfile,'wb');
- if($istream && $ostream) {
- pipe_streams($istream,$ostream);
- fclose($istream);
- fclose($ostream);
+ if($istream && $ostream) {
+ pipe_streams($istream,$ostream);
+ fclose($istream);
+ fclose($ostream);
}
$imagick_path = get_config('system','imagick_convert_path');
@@ -42,8 +42,8 @@ class Pdf {
else {
@rename($outfile,$file . '.thumb');
}
- @unlink($tmpfile);
}
+ @unlink($tmpfile);
}
}