diff --git a/usr/local/www/widgets/widgets/traffic_graphs.widget.php b/usr/local/www/widgets/widgets/traffic_graphs.widget.php index b33743ea17..ab4456d015 100644 --- a/usr/local/www/widgets/widgets/traffic_graphs.widget.php +++ b/usr/local/www/widgets/widgets/traffic_graphs.widget.php @@ -81,10 +81,6 @@ Refresh Interval: = 500) - $firstgraphshown = false; - else - $firstgraphshown = true; foreach ($ifdescrs as $ifdescr => $ifname) { $ifinfo = get_interface_info($ifdescr); $currentgraph = $showngraphlist[$graphcounter]; @@ -103,17 +99,10 @@ Refresh Interval: $interfacevalue = "hide"; } } else { - if(!$firstgraphshown) { $mingraphbutton = "inline"; $showgraphbutton = "none"; $graphdisplay = "inline"; $interfacevalue = "show"; - } else { - $mingraphbutton = "none"; - $showgraphbutton = "inline"; - $graphdisplay = "none"; - $interfacevalue = "hide"; - } } @@ -126,8 +115,10 @@ Refresh Interval: Current =$ifname;?> Traffic