Commit 5ac5c496 authored by Eric - kg6wxc's avatar Eric - kg6wxc
Browse files

finxed warning from map_functions about undefined index in array

creation
parent 6bee8703
......@@ -353,7 +353,7 @@ function load_LinkedTO($node_info, $TopoList)
//the new line
//had to create the array correctly! fixed 3-28-2018 - wxc
if (is_array($linkInfoForStationPopups[$node_info['node']][$value['node']])) {
if (isset($linkInfoForStationPopups[$node_info['node']][$value['node']]) && is_array($linkInfoForStationPopups[$node_info['node']][$value['node']])) {
$linkInfoForStationPopups[$node_info['node']][$value['node']]["costFrom"] = $value['cost'];
}else {
// $linkInfoForStationPopups[$node_info['node']][$value['node']] = array('costFrom' => $value['cost'], 'costTo' => "", 'distance' => "", 'bearing' => "");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment