From ac89d268a75873b1d35d2ecfa883ccc861c84380 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Tue, 19 May 2020 11:23:42 +0200 Subject: [PATCH] Only try to implode pihole arpflush quiet output if it is an array. Signed-off-by: DL6ER --- scripts/pi-hole/php/savesettings.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/pi-hole/php/savesettings.php b/scripts/pi-hole/php/savesettings.php index d537ae8b..9f3735d9 100644 --- a/scripts/pi-hole/php/savesettings.php +++ b/scripts/pi-hole/php/savesettings.php @@ -725,7 +725,10 @@ function addStaticDHCPLease($mac, $ip, $hostname) { // Flush network table case "flusharp": pihole_execute("arpflush quiet", $output); - $error = implode("
", $output); + if(is_array($output)) + { + $error = implode("
", $output); + } if(strlen($error) == 0) { $success .= "The network table has been flushed";