Module: nagvis
Branch: master
Commit: e4ce2549564e6983dfde2a49fce9813024089554
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=e4ce2549564e6983dfde2a49fce9813024089554

Author: Roman Kyrylych <[email protected]>
Date:   Tue Aug 18 18:14:14 2009 +0300

gmap: Fixed more references to location in Link class

Signed-off-by: Roman Kyrylych <[email protected]>

---

 share/netmap/Link.php |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/share/netmap/Link.php b/share/netmap/Link.php
index 0059fe3..32bfc68 100644
--- a/share/netmap/Link.php
+++ b/share/netmap/Link.php
@@ -171,12 +171,12 @@ class Link
        private function removeNode(&$xml, $id1, $id2)
        {
                $index = 0;
-               foreach ($xml->location as $node)
+               foreach ($xml->link as $node)
                {
                        if ($node['id1'] == $id1 && $node['id2'] == $id2)
                        {
                                // Note: unset($node) won't work thus the need 
for $index
-                               unset($xml->location[$index]);
+                               unset($xml->link[$index]);
                                $success = true;
                                break;
                        }
@@ -197,7 +197,7 @@ class Link
 
                $link->updateState();
 
-               Location::removeNode($xml, $link->id1, $link->id2);
+               Link::removeNode($xml, $link->id1, $link->id2);
 
                $link->toXML($xml);
 


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to