From 1cf87e7753202d825b2c0455da0821a872633638 Mon Sep 17 00:00:00 2001 From: fermin831 Date: Fri, 3 Mar 2017 10:49:50 +0100 Subject: [PATCH] Fixed PHP 5.3 compatibility on GIS maps --- pandora_console/operation/gis_maps/render_view.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora_console/operation/gis_maps/render_view.php b/pandora_console/operation/gis_maps/render_view.php index dfd3cb8e03..07e08582ec 100644 --- a/pandora_console/operation/gis_maps/render_view.php +++ b/pandora_console/operation/gis_maps/render_view.php @@ -31,7 +31,9 @@ $confMap = gis_get_map_conf($idMap); // Default open map (used to overwrite unlicensed google map view) $confMapDefault = get_good_con(); -$confMapUrlDefault = json_decode($confMapDefault['conection_data'], true)['url']; +$confMapDefaultFull = array(); +$confMapDefaultUrlFull = json_decode($confMapDefault['conection_data'], true); +$confMapUrlDefault = $confMapDefaultFull['url']; if (! check_acl ($config['id_user'], $map['group_id'], "MR") && ! check_acl ($config['id_user'], $map['group_id'], "MW") && ! check_acl ($config['id_user'], $map['group_id'], "MM")) { db_pandora_audit("ACL Violation", "Trying to access map builder");