From 7646cf86139c2e4d0d981c4bbbc33424c0a8cfc2 Mon Sep 17 00:00:00 2001 From: wangjianhua Date: Mon, 21 Nov 2022 20:57:48 +0800 Subject: [PATCH] * Fix wrong syntax. --- module/file/model.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/module/file/model.php b/module/file/model.php index 76cf93a703..9783d7250b 100755 --- a/module/file/model.php +++ b/module/file/model.php @@ -1119,12 +1119,9 @@ class fileModel extends model */ public function getImageSize($file) { - - if(stripos('jpg|jpeg|gif|png|bmp', $file->extension) === false) return array(0, 0, $$file->extension); - if($this->config->file->storageType == 'fs') { - return file_exists($file->realPath) ? getimagesize($file->realPath) : array(0, 0, $$file->extension); + return file_exists($file->realPath) ? getimagesize($file->realPath) : array(0, 0, $file->extension); } else if($this->config->file->storageType == 's3') {