From 3ca142e222a3ecfee874a4f2c0a6b0a070597eeb Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Wed, 4 Apr 2012 16:30:02 +0000 Subject: [PATCH] FIXME? HOW? git-svn-id: http://www.observium.org/svn/observer/trunk@2951 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/polling/ports.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/polling/ports.inc.php b/includes/polling/ports.inc.php index 894af479c8..1683745275 100755 --- a/includes/polling/ports.inc.php +++ b/includes/polling/ports.inc.php @@ -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; }