mirror of
https://github.com/librenms/librenms.git
synced 2024-09-25 12:27:16 +00:00
FIXME? HOW?
git-svn-id: http://www.observium.org/svn/observer/trunk@2951 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
parent
6a6b923b6b
commit
3ca142e222
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user