From 3a79e38919f3ca225c7d993e11812585d00e1f39 Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Wed, 4 May 2022 13:57:29 +0200 Subject: [PATCH] related to #1657 curly braces rectification --- include/derivative.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/derivative.inc.php b/include/derivative.inc.php index 9963a5068..351623322 100644 --- a/include/derivative.inc.php +++ b/include/derivative.inc.php @@ -58,9 +58,11 @@ final class SrcImage if ( ($size=@getimagesize(PHPWG_ROOT_PATH.$this->rel_path)) === false) { $extTab = explode('.',$infos['path']); - if (strtoupper(end($extTab)) == 'SVG') { + if (strtoupper(end($extTab)) == 'SVG') + { $this->rel_path = $infos['path']; - } else { + } else + { $this->rel_path = 'themes/default/icon/mimetypes/unknown.png'; } $size = getimagesize(PHPWG_ROOT_PATH.$this->rel_path);