[BUGFIX] Add int cast for GFX/processor_effects check 23/57023/3
authorFrank Naegler <frank.naegler@typo3.org>
Tue, 22 May 2018 08:54:49 +0000 (10:54 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Tue, 22 May 2018 09:31:44 +0000 (11:31 +0200)
Resolves: #85059
Related: #81700
Releases: 8.7
Change-Id: Icf7112d938c7905e2c9bda03a9b48cc8e9cfac0b
Reviewed-on: https://review.typo3.org/57023
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php

index 3debed6..4ce6ff2 100644 (file)
@@ -369,7 +369,7 @@ class GraphicalFunctions
         $this->cmds['jpg'] = $this->cmds['jpeg'] = '-colorspace ' . $this->colorspace . ' -quality ' . $this->jpegQuality;
 
         // ... but if 'processor_effects' is set, enable effects
-        if ($gfxConf['processor_effects'] === 1) {
+        if ((int)$gfxConf['processor_effects'] === 1) {
             $this->NO_IM_EFFECTS = 0;
             $this->cmds['jpg'] .= $this->v5_sharpen(10);
             $this->cmds['jpeg'] .= $this->v5_sharpen(10);