mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix some stuff, break some stuff (ports disaply is missing some stuff atm)
git-svn-id: http://www.observium.org/svn/observer/trunk@2290 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -24,14 +24,7 @@ foreach ($_POST as $key => $val)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!mysql_query('UPDATE `ports` SET `ignore`='.$newign.' WHERE `device_id`='.$device_id.' AND `interface_id`='.$interface_id))
|
||||
{
|
||||
$n = -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
$n = mysql_affected_rows();
|
||||
}
|
||||
$n = dbUpdate(array('ignore' => $newign), 'ports', '`device_id` = ? AND `interface_id` = ?', array($device_id, $interface_id));
|
||||
|
||||
if ($n <0)
|
||||
{
|
||||
@@ -58,14 +51,7 @@ foreach ($_POST as $key => $val)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!mysql_query('UPDATE `ports` SET `disabled`='.$newdis.' WHERE `device_id`='.$device_id.' AND `interface_id`='.$interface_id))
|
||||
{
|
||||
$n = -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
$n = mysql_affected_rows();
|
||||
}
|
||||
$n = dbUpdate(array('disabled' => $newdis), 'ports', '`device_id` = ? AND `interface_id` = ?', array($device_id, $interface_id));
|
||||
|
||||
if ($n <0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user