From d44b264a08c7bb5e489c4c05f6e04df5a1cf7c2e Mon Sep 17 00:00:00 2001 From: jammin84 Date: Mon, 14 Dec 2015 14:11:29 +0800 Subject: [PATCH] fix issue #56 fix url ref. It was previously only within the context of there being a_node && b_node predefined. --- includes/pages/nodes/nodes_plot_link.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/pages/nodes/nodes_plot_link.php b/includes/pages/nodes/nodes_plot_link.php index 84b9209..6abfe6d 100644 --- a/includes/pages/nodes/nodes_plot_link.php +++ b/includes/pages/nodes/nodes_plot_link.php @@ -37,6 +37,7 @@ function output() { $main->menu->hide = TRUE; $main->footer->hide = TRUE; $this->tpl['a_node'] = (isset($_POST['a_node'])?$_POST['a_node']:get('a_node')); + $this->tpl['nodes_pickup_link'] = make_ref('/pickup/nodes'); if ($this->tpl['a_node'] != '') { $a_node_data = $db->get('id, name, latitude, longitude, elevation', 'nodes', "id = '".$this->tpl['a_node']."'"); $a_node_data = $a_node_data[0]; @@ -94,7 +95,6 @@ function output() { $c = 299792.458; // light speed in km $this->tpl['fsl'] = 20 * log10(4 * pi() * $this->tpl['distance'] * ($frequency / $c)); - $this->tpl['nodes_pickup_link'] = make_ref('/pickup/nodes'); $this->tpl['plot_image'] = make_ref('/nodes/plot', array("a_node" => $this->tpl['a_node'], "b_node" => $this->tpl['b_node'], "frequency" => $this->tpl['frequency'])); }