diff options
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/status_rrd_graph.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/status_rrd_graph.php b/usr/local/www/status_rrd_graph.php index b5e740d..3f80743 100755 --- a/usr/local/www/status_rrd_graph.php +++ b/usr/local/www/status_rrd_graph.php @@ -161,6 +161,9 @@ include("head.inc"); /* Deduce a interface if possible and use the description */ $optionc = "$optionc[0]"; $friendly = convert_friendly_interface_to_friendly_descr(strtolower($optionc)); + if(empty($friendly)) { + $friendly = $optionc; + } $search = array("-", ".rrd", $optionc); $replace = array(" :: ", "", $friendly); echo "<option value=\"$optionc\""; |