mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added mysqli support
This commit is contained in:
@@ -20,9 +20,6 @@ foreach ($stack_poll_array as $port_id_high => $entry_high) {
|
||||
else {
|
||||
dbUpdate(array('ifStackStatus' => $ifStackStatus), 'ports_stack', 'device_id=? AND port_id_high=? AND `port_id_low`=?', array($device['device_id'], $port_id_high, $port_id_low));
|
||||
echo 'U';
|
||||
if ($debug) {
|
||||
echo mysql_error();
|
||||
}
|
||||
}
|
||||
|
||||
unset($stack_db_array[$port_id_high][$port_id_low]);
|
||||
@@ -30,9 +27,6 @@ foreach ($stack_poll_array as $port_id_high => $entry_high) {
|
||||
else {
|
||||
dbInsert(array('device_id' => $device['device_id'], 'port_id_high' => $port_id_high, 'port_id_low' => $port_id_low, 'ifStackStatus' => $ifStackStatus), 'ports_stack');
|
||||
echo '+';
|
||||
if ($debug) {
|
||||
echo mysql_error();
|
||||
}
|
||||
}
|
||||
}//end foreach
|
||||
}//end foreach
|
||||
|
||||
Reference in New Issue
Block a user