From fa932d6db80c4712c9f93b71809bbf0ca465b2e5 Mon Sep 17 00:00:00 2001 From: Nicolas Martignoni Date: Tue, 2 Jan 2024 13:53:03 +0100 Subject: [PATCH] Fix stupid typos in previous bug fix - Issue #130. - Related to #128. --- classes/local/utils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/local/utils.php b/classes/local/utils.php index 34558bb..2cc4dc4 100644 --- a/classes/local/utils.php +++ b/classes/local/utils.php @@ -344,8 +344,8 @@ public static function is_private_ipv4_address($address) { * if no clients connected. */ public static function get_connected_ip_adresses($interface) { - $iwoutput = shell_exec('iw dev ' . $interface . ' station dump') || ''; - $arpoutput = shell_exec('arp -ai ' . $interface) || ''; + $iwoutput = shell_exec('iw dev ' . $interface . ' station dump') ?: ''; + $arpoutput = shell_exec('arp -ai ' . $interface) ?: ''; // Extract MAC and IP addresses. preg_match_all('/Station\s+([a-fA-F0-9:]+)/', $iwoutput, $iwmatches);