From 005e6f646f892932e3072ad2697f1f0cc401fea7 Mon Sep 17 00:00:00 2001 From: Ere Maijala <ere.maijala@helsinki.fi> Date: Wed, 9 Mar 2016 14:24:10 +0200 Subject: [PATCH] Check makeDynamicCovers setting so that false actually works (ini reader sets false to 0). --- module/VuFind/src/VuFind/Cover/Loader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/VuFind/src/VuFind/Cover/Loader.php b/module/VuFind/src/VuFind/Cover/Loader.php index c5f2f4645d7..0f788a794ab 100644 --- a/module/VuFind/src/VuFind/Cover/Loader.php +++ b/module/VuFind/src/VuFind/Cover/Loader.php @@ -261,7 +261,7 @@ class Loader extends \VuFind\ImageLoader && !$this->fetchFromContentType() ) { if (isset($this->config->Content->makeDynamicCovers) - && false !== $this->config->Content->makeDynamicCovers + && $this->config->Content->makeDynamicCovers ) { $this->image = $this->getCoverGenerator()->generate( $settings['title'], $settings['author'], $settings['callnumber'] @@ -541,7 +541,7 @@ class Loader extends \VuFind\ImageLoader } $image = $result->getBody(); - + if ('' == $image) { return false; } -- GitLab