mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
Fix coding style part 2
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
|
||||
if (!$os)
|
||||
{
|
||||
if (strstr($sysDescr, "Comware")) { $os = "comware"; }
|
||||
else if(preg_match('/HP [a-zA-Z0-9- ]+ Switch Software Version/',$sysDescr)) { $os = "comware"; }
|
||||
if (!$os) {
|
||||
if (strstr($sysDescr, 'Comware')) {
|
||||
$os = 'comware';
|
||||
}
|
||||
else if (preg_match('/HP [a-zA-Z0-9- ]+ Switch Software Version/', $sysDescr)) {
|
||||
$os = 'comware';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user