Fixed PHP 5.3 compatibility on GIS maps

This commit is contained in:
fermin831 2017-03-03 10:49:50 +01:00
parent bcf1fc2e1b
commit 1cf87e7753
1 changed files with 3 additions and 1 deletions

View File

@ -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");