more warning cleanups

git-svn-id: http://www.observium.org/svn/observer/trunk@705 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-01-16 23:56:33 +00:00
parent 23b528b295
commit de53ae27c6
5 changed files with 21 additions and 14 deletions
+2 -2
View File
@@ -37,7 +37,7 @@
mysql_query($query);
} else { echo("."); }
}
$storage_exists[] = $device[device_id]." $hrStorageIndex";
$storage_exists[] = $device['device_id']." $hrStorageIndex";
} else { echo("X"); };
}
}
@@ -48,7 +48,7 @@ $query = mysql_query($sql);
while ($store = mysql_fetch_array($query)) {
unset($exists);
$i = 0;
while ($i < count($storage_exists) && !$exists) {
while ($i < count($storage_exists) && !isset($exists)) {
$thisstore = $store['host_id'] . " " . $store['hrStorageIndex'];
if ($storage_exists[$i] == $thisstore) { $exists = 1; }
$i++;