summaryrefslogtreecommitdiffstats
path: root/lib/private/preview/pdf.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2014-02-10 21:32:17 +0100
committerBart Visscher <bartv@thisnet.nl>2014-02-10 21:32:17 +0100
commit082abdc62080730f70ac0fac67628e4d3bb0cc7b (patch)
tree0054fcb95d954b31933aaafbbdcd69d66a6c944e /lib/private/preview/pdf.php
parent5c3c379f351be913fe7abd500fadd69a83687ebc (diff)
parentbea80ffe2060407e5d849a86f71fae2eed80b08e (diff)
downloadnextcloud-server-082abdc62080730f70ac0fac67628e4d3bb0cc7b.tar.gz
nextcloud-server-082abdc62080730f70ac0fac67628e4d3bb0cc7b.zip
Merge branch 'master' into migration_unit_tests
Diffstat (limited to 'lib/private/preview/pdf.php')
-rw-r--r--lib/private/preview/pdf.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/preview/pdf.php b/lib/private/preview/pdf.php
index cc974b68818..572b8788ac9 100644
--- a/lib/private/preview/pdf.php
+++ b/lib/private/preview/pdf.php
@@ -7,7 +7,7 @@
*/
namespace OC\Preview;
-if (extension_loaded('imagick')) {
+if (extension_loaded('imagick') && count(\Imagick::queryFormats("PDF")) === 1) {
class PDF extends Provider {