1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-29 21:24:44 +03:00

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

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;