mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
json_decode as array
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
|
||||
$sql = dbFetchRow('SELECT `settings` FROM `users_widgets` WHERE `user_id` = ? AND `widget_id` = ?', array($_SESSION["user_id"], '1'));
|
||||
$widget_mode = json_decode($sql['settings']);
|
||||
$widget_mode = json_decode($sql['settings'], true);
|
||||
|
||||
if (isset($_SESSION["map_view"]) && is_numeric($_SESSION["map_view"])) {
|
||||
$mode = $_SESSION["map_view"];
|
||||
|
Reference in New Issue
Block a user