array keys are strings, duh

git-svn-id: http://www.observium.org/svn/observer/trunk@2863 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2012-02-14 19:01:23 +00:00
parent ff0f27a9fa
commit 752bbc2af8
27 changed files with 86 additions and 88 deletions
+3 -3
View File
@@ -15,10 +15,10 @@ if (!strstr($ciscomodel, " ") && strlen($ciscomodel) >= '3')
$hardware = $ciscomodel;
}
$poll_device[sysDescr] = str_replace(", Inc.", "", $poll_device[sysDescr]); ## Make the two formats the same
$poll_device[sysDescr] = str_replace("\n", " ", $poll_device[sysDescr]);
$poll_device['sysDescr'] = str_replace(", Inc.", "", $poll_device['sysDescr']); ## Make the two formats the same
$poll_device['sysDescr'] = str_replace("\n", " ", $poll_device['sysDescr']);
list(,,$hardware,,,,,,,$version,,,$features) = explode(" ", $poll_device[sysDescr]);
list(,,$hardware,,,,,,,$version,,,$features) = explode(" ", $poll_device['sysDescr']);
list(,$features) = explode("-", $features);
?>