mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
more warning cleanups
git-svn-id: http://www.observium.org/svn/observer/trunk@705 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
if($device['os'] == "catos" && strstr($if, "vlan") ) { $nullintf = 1; }
|
||||
$ifDescr = fixifName($ifDescr);
|
||||
if (preg_match('/serial[0-9]:/', $if)) { $nullintf = 1; }
|
||||
if(!$config['allow_ng']) {
|
||||
if(isset($config['allow_ng']) && !$config['allow_ng']) {
|
||||
if (preg_match('/ng[0-9]+$/', $if)) { $nullintf = 1; }
|
||||
}
|
||||
if ($debug) echo("\n $if ");
|
||||
@@ -45,7 +45,7 @@
|
||||
# Add Interface
|
||||
echo("+");
|
||||
} else {
|
||||
if($interface['deleted']) {
|
||||
if(isset($interface['deleted']) && $interface['deleted']) {
|
||||
mysql_query("UPDATE `interfaces` SET `deleted` = '0' WHERE `device_id` = '".$device['device_id']."' AND `ifIndex` = '$ifIndex'");
|
||||
echo("*");
|
||||
} else {
|
||||
@@ -73,7 +73,7 @@
|
||||
while ($test_if = mysql_fetch_array($query)) {
|
||||
unset($exists);
|
||||
$i = 0;
|
||||
while ($i < count($int_exists) && !$exists) {
|
||||
while ($i < count($int_exists) && !isset($exists)) {
|
||||
$this_if = $test_if['ifIndex'];
|
||||
if ($int_exists[$i] == $this_if) { $exists = 1; }
|
||||
$i++;
|
||||
|
||||
Reference in New Issue
Block a user