r2871 - getObjectPortsAndLinks(): return remote port type id, if it is available
authorDenis Ovsienko <infrastation@yandex.ru>
Mon, 15 Jun 2009 21:16:15 +0000 (21:16 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Mon, 15 Jun 2009 21:16:15 +0000 (21:16 +0000)
inc/database.php

index 8160274f4bf47e9f271b4308175a5b2475dc8624..c5b4c766e30928911967edee57444f2c19355c6e 100644 (file)
@@ -539,6 +539,7 @@ function getObjectPortsAndLinks ($object_id)
                $row['remote_name'] = NULL;
                $row['remote_object_id'] = NULL;
                $row['remote_object_name'] = NULL;
+               $row['remote_type_id'] = NULL;
                $ret[] = $row;
        }
        unset ($result);
@@ -569,6 +570,7 @@ function getObjectPortsAndLinks ($object_id)
                                $ret[$tmpkey]['remote_name'] = $row['port_name'];
                                $ret[$tmpkey]['remote_object_id'] = $row['object_id'];
                                $ret[$tmpkey]['remote_object_name'] = $row['object_name'];
+                               $ret[$tmpkey]['remote_type_id'] = $row['port_type'];
                        }
                        $ret[$tmpkey]['remote_id'] = $remote_id;
                        unset ($result);