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);
|
$result = $this->dbi->fetchSingleRow($query);
|
||||||
|
if (is_array($result)) {
|
||||||
$params = json_decode((string) $result['settings_data'], true);
|
$params = json_decode((string) $result['settings_data'], true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $params;
|
return $params;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user