git://git.onelab.eu
/
monitor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1cdc2d
)
Ignore empty 'portstatus' dicts. This just means the ports are down.
author
Stephen Soltesz
<soltesz@cs.princeton.edu>
Mon, 5 Nov 2007 22:33:08 +0000
(22:33 +0000)
committer
Stephen Soltesz
<soltesz@cs.princeton.edu>
Mon, 5 Nov 2007 22:33:08 +0000
(22:33 +0000)
www/printbadpcus.php
patch
|
blob
|
history
diff --git
a/www/printbadpcus.php
b/www/printbadpcus.php
index
fb86fa3
..
a57bf90
100644
(file)
--- a/
www/printbadpcus.php
+++ b/
www/printbadpcus.php
@@
-28,7
+28,7
@@
function format_ports($pcu)
$str = "";
#print print_r(is_array($pcu)) . "<BR>";
#print print_r(array_key_exists('portstatus', $pcu)) . "<BR>";
- if ( is_array($pcu) && array_key_exists('portstatus', $pcu) )
+ if ( is_array($pcu) && array_key_exists('portstatus', $pcu)
&& count(array_keys($pcu['portstatus'])) > 0
)
{
$portstat = $pcu['portstatus'];