Fix php notice "Trying to access array offset on value of type bool"

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2020-01-23 11:31:12 +01:00
parent 2ea12c2500
commit 8a0f006775
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -175,8 +175,9 @@ class Designer
. '";';
$result = $this->dbi->fetchSingleRow($query);
$params = json_decode((string) $result['settings_data'], true);
if (is_array($result)) {
$params = json_decode((string) $result['settings_data'], true);
}
}
return $params;