From ab2cd48c13c9c33f3ad2e9faee14a354dd2f261d Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 8 Jun 2022 15:14:57 +0200 Subject: [PATCH] interfaces: appease PHP 8.0 --- src/etc/inc/interfaces.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index 787c865ee..a406dd26e 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -1511,7 +1511,7 @@ function interface_wireless_clone($realif, $wlcfg) $baseif = interface_get_wireless_base($wlcfg['if']); if (does_interface_exist($realif)) { exec("/sbin/ifconfig " . escapeshellarg($realif), $output, $ret); - $ifconfig_str = implode($output); + $ifconfig_str = implode(PHP_EOL, $output); if (($wlcfg_mode == "hostap") && (! preg_match("/hostap/si", $ifconfig_str))) { log_error("Interface {$realif} changed to hostap mode"); $needs_clone = true; @@ -1955,7 +1955,7 @@ EOD; * down all wireless networks on the interface. */ exec("{$ifconfig} " . escapeshellarg($if), $output); - $ifconfig_str = implode($output); + $ifconfig_str = implode(PHP_EOL, $output); unset($output); $reg_changing = false;