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:
parent
2ea12c2500
commit
8a0f006775
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user