diff options
author | tflidd <tflidd@aspekte.net> | 2021-01-28 01:20:01 +0300 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-03-31 18:26:49 +0300 |
commit | cc3e4e1c850fad154533a17556951159855f590a (patch) | |
tree | f778b5863cb9f93ce6f651f754b597c7b02614cc | |
parent | 0e4a39ac8ab99da2f1d078e643eca2e9fbc3cdc8 (diff) |
Update FreeBSD.phptflidd-patch-1
fix syntax
-rw-r--r-- | lib/OperatingSystems/FreeBSD.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/OperatingSystems/FreeBSD.php b/lib/OperatingSystems/FreeBSD.php index 570511c..bb492ba 100644 --- a/lib/OperatingSystems/FreeBSD.php +++ b/lib/OperatingSystems/FreeBSD.php @@ -137,8 +137,8 @@ class FreeBSD implements IOperatingSystem { $result['dns'] = $alldns; $netstat = $this->executeCommand('netstat -rn'); preg_match_all("/(?<=^default)\s*[0-9a-fA-f\.:]+/m", $netstat, $gw); - if (count($gw[0]) > 0){ - $result['gateway'] = implode(array_map("trim", $gw[0]), ", "); + if (count($gw[0]) > 0) { + $result['gateway'] = implode(", ", array_map("trim", $gw[0])); } } catch (\RuntimeException $e) { return $result; |