FIXME? HOW?

git-svn-id: http://www.observium.org/svn/observer/trunk@2951 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong 2012-04-04 16:30:02 +00:00
parent 6a6b923b6b
commit 3ca142e222

View File

@ -122,6 +122,8 @@ if ($debug) { print_r($port_stats); }
/// Build array of ports in the database
## FIXME -- this stuff is a little messy, looping the array to make an array just seems wrong. :>
## -- i can make it a function, so that you don't know what it's doing.
## -- $ports = adamasMagicFunction($ports_db); ?
$ports_db = dbFetchRows("SELECT * FROM `ports` WHERE `device_id` = ?", array($device['device_id']));
foreach ($ports_db as $port) { $ports[$port['ifIndex']] = $port; }