more warning cleanups

git-svn-id: http://www.observium.org/svn/observer/trunk@997 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-03-06 01:32:41 +00:00
parent d9ceca0dc1
commit 67003d60d1
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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);
+2 -2
View File
@@ -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");