From b65881625a6205c8e70667d8aeef16545a49a320 Mon Sep 17 00:00:00 2001 From: ajstanley Date: Sat, 2 Dec 2023 15:15:14 -0400 Subject: [PATCH] change to Boooean logic --- modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php b/modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php index 804153abf..779d3d06b 100644 --- a/modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php +++ b/modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php @@ -343,7 +343,7 @@ protected function getCanvasDimensions(string $iiif_url, FieldItemInterface $ima // If this is a TIFF AND we don't know the width/height // see if we can get the image size via PHP's core function. - if ($mime_type === 'image/tiff' && !$width || !$height) { + if ($mime_type === 'image/tiff' && !($width || !$height)) { $uri = $image->entity->getFileUri(); $path = $this->fileSystem->realpath($uri); $image_size = getimagesize($path);