related to #1657 curly braces rectification

This commit is contained in:
Matthieu Leproux
2022-05-02 15:31:48 +02:00
parent 734480e7e1
commit dd5174ec9a

View File

@@ -198,15 +198,19 @@ function get_sync_metadata($infos)
$infos['is_svg'] = $is_svg;
if (isset($width)) {
if (isset($width))
{
$infos['width'] = $width;
} elseif (isset($vb)) {
} elseif (isset($vb))
{
$infos['width'] = explode(" ", $vb)[2];
}
if (isset($height)) {
if (isset($height))
{
$infos['height'] = $height;
} elseif (isset($vb)) {
} elseif (isset($vb))
{
$infos['height'] = explode(" ", $vb)[3];
}
}