mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
rows. rows. ROWS. NOT FUCKING ROW.
git-svn-id: http://www.observium.org/svn/observer/trunk@2313 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
+1
-1
@@ -240,7 +240,7 @@ function set_dev_attrib($device, $attrib_type, $attrib_value)
|
||||
function get_dev_attribs($device)
|
||||
{
|
||||
$attribs = array();
|
||||
foreach(dbFetchRow("SELECT * FROM devices_attribs WHERE `device_id` = ?", array($device)) as $entry)
|
||||
foreach(dbFetchRows("SELECT * FROM devices_attribs WHERE `device_id` = ?", array($device)) as $entry)
|
||||
{
|
||||
$attribs[$entry['attrib_type']] = $entry['attrib_value'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user