add the roadmap .dia file for 2019Q2
[racktables-contribs] / livecdp-0.20.10-patch
CommitLineData
277d0092 1--- /var/www/RackTables-0.20.10/wwwroot/inc/interface.php 2013-04-14 21:27:19.000000000 +0100
2+++ /var/www/RackTables-0.20.10/wwwroot/inc/interface.php 2013-04-17 10:33:35.261661075 +0100
3
4@@ -8292,7 +8292,7 @@
5 $myports = array();
6 foreach ($mydevice['ports'] as $port)
7 if (mb_strlen ($port['name']))
8- $myports[$port['name']][] = $port;
9+ $myports[mb_strtolower($port['name'])][] = $port;
10
11 // scroll to selected port
12 if (isset ($_REQUEST['hl_port_id']))
13@@ -8340,12 +8340,12 @@
14 // get list of ports that have name matching CDP portname
15 $remote_ports = array(); // list of remote (by DP info) ports
16 foreach ($dp_remote_object['ports'] as $port)
17- if ($port['name'] == $dp_neighbor['port'])
18+ if (mb_strtolower($port['name']) == $dp_neighbor['port'])
19 {
20 $portinfo_remote = $port;
21 $remote_ports[] = $port;
22 }
23
24 // check if ports with such names exist on devices
25 if (empty ($local_ports))
26 {
27@@ -8366,7 +8366,7 @@
28 if
29 (
30 $portinfo_local['remote_object_id'] == $dp_remote_object_id
31- and $portinfo_local['remote_name'] == $dp_neighbor['port']
32+ and mb_strtolower($portinfo_local['remote_name']) == $dp_neighbor['port']
33 )
34 {
35 // set $portinfo_remote to corresponding remote port