From a199c73f8bba6c3ec6481d964522f86570fa8e35 Mon Sep 17 00:00:00 2001 From: Wehr Mario Date: Tue, 26 Sep 2023 10:35:26 +0200 Subject: [PATCH] FIX devision by zero --- imageclass.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/imageclass.php b/imageclass.php index 80f08d2..73d1070 100644 --- a/imageclass.php +++ b/imageclass.php @@ -81,11 +81,9 @@ public function __construct($storedfile, $gallery, $cm, $metadata = null, $thumb $this->storedfile->get_filename().'.png'); $this->thumburl->param('mtime', $this->storedfile->get_timemodified()); - if ($loadextrainfo) { - $imageinfo = $this->storedfile->get_imageinfo(); - $this->height = $imageinfo['height']; - $this->width = $imageinfo['width']; - } + $imageinfo = $this->storedfile->get_imageinfo(); + $this->height = $imageinfo['height']; + $this->width = $imageinfo['width']; $this->thumbnail = $thumbnail;