summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-07-08 09:27:54 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-07-08 19:36:17 +0200
commit58dd278b4ef5bcc34a3b9970c3b7ebe11b01a51c (patch)
treecc7c7cc4378f5948f420fd8f3b9ca1e09de5b1c6
parentc91aebc43793f62445ac14d303b62b205980121e (diff)
downloadnextcloud-server-58dd278b4ef5bcc34a3b9970c3b7ebe11b01a51c.tar.gz
nextcloud-server-58dd278b4ef5bcc34a3b9970c3b7ebe11b01a51c.zip
Correction is no longer required in php7
-rw-r--r--tests/lib/PreviewTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/PreviewTest.php b/tests/lib/PreviewTest.php
index 6ca88253468..cd228801815 100644
--- a/tests/lib/PreviewTest.php
+++ b/tests/lib/PreviewTest.php
@@ -783,7 +783,7 @@ class PreviewTest extends TestCase {
$filename = $this->samples[$sampleId]['sampleFileName'];
$splitFileName = pathinfo($filename);
$extension = $splitFileName['extension'];
- $correction = ($extension === 'eps') ? 1 : 0;
+ $correction = ($extension === 'eps' && PHP_MAJOR_VERSION < 7) ? 1 : 0;
$maxPreviewHeight = $this->samples[$sampleId]['maxPreviewHeight'];
$maxPreviewHeight = $maxPreviewHeight - $correction;