changeset 33:6e8078af6baf draft

Bugfix
author ivo <ivo@UFO-Net.nl>
date Fri, 11 Jun 2010 18:31:24 +0200
parents d44b9afb4a25
children e429d8af6e44
files doc/ucis.ano/bgp_graph/path_list_to_dot.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/doc/ucis.ano/bgp_graph/path_list_to_dot.php	Fri Jun 11 11:40:32 2010 +0000
+++ b/doc/ucis.ano/bgp_graph/path_list_to_dot.php	Fri Jun 11 18:31:24 2010 +0200
@@ -18,7 +18,7 @@
 
 foreach ($nodes as $node => $links) {
 	foreach ($links as $link => $dummy) {
-		if (isset($nodes[$node][$link]) && isset($nodes[$link][$node])) unset($nodes[$link][$node]);
+		if ($node != link && isset($nodes[$node][$link]) && isset($nodes[$link][$node])) unset($nodes[$link][$node]);
 	}
 }