Browse Source

change to Boooean logic

pull/999/head
ajstanley 11 months ago
parent
commit
b65881625a
  1. 2
      modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php

2
modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php

@ -343,7 +343,7 @@ class IIIFManifest extends StylePluginBase {
// If this is a TIFF AND we don't know the width/height // 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. // 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(); $uri = $image->entity->getFileUri();
$path = $this->fileSystem->realpath($uri); $path = $this->fileSystem->realpath($uri);
$image_size = getimagesize($path); $image_size = getimagesize($path);

Loading…
Cancel
Save