related to #1657 curly braces rectification

This commit is contained in:
Matthieu Leproux
2022-05-04 13:57:29 +02:00
parent ac5979ac8c
commit 3a79e38919
+4 -2
View File
@@ -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);