mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
more warning cleanups
git-svn-id: http://www.observium.org/svn/observer/trunk@997 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -11,7 +11,7 @@ if($_SESSION['userlevel'] == '10') {
|
||||
$device_query = mysql_query($sql);
|
||||
while($device = mysql_fetch_array($device_query)) {
|
||||
|
||||
if($bg == "#ffffff") { $bg = "#eeeeee"; } else { $bg="#ffffff"; }
|
||||
if(!isset($bg) || $bg == "#ffffff") { $bg = "#eeeeee"; } else { $bg="#ffffff"; }
|
||||
|
||||
if($_SESSION['userlevel'] == '10') {
|
||||
$num = mysql_result(mysql_query("SELECT COUNT(device_id) FROM devices WHERE location = '" . $device['location'] . "'"),0);
|
||||
|
||||
@@ -4,10 +4,10 @@ $datas = array('Temperatures', 'Voltages', 'Fanspeeds');
|
||||
|
||||
print_optionbar_start();
|
||||
|
||||
unset ($sep);
|
||||
$sep = "";
|
||||
foreach ($datas as $texttype) {
|
||||
$type = strtolower($texttype);
|
||||
if (!$_GET['opta']) { $_GET['opta'] = $type; }
|
||||
if (!isset($_GET['opta'])) { $_GET['opta'] = $type; }
|
||||
echo($sep);
|
||||
if ($_GET['opta'] == $type) { echo("<strong>"); }
|
||||
echo("<a href='".$config['base_url']."/sensors/" . $type . "/'> " . $texttype ."</a>\n");
|
||||
|
||||
Reference in New Issue
Block a user