Only try to implode pihole arpflush quiet output if it is an array.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2020-05-19 11:23:42 +02:00
parent 128a88e130
commit ac89d268a7

View File

@@ -725,7 +725,10 @@ function addStaticDHCPLease($mac, $ip, $hostname) {
// Flush network table
case "flusharp":
pihole_execute("arpflush quiet", $output);
$error = implode("<br>", $output);
if(is_array($output))
{
$error = implode("<br>", $output);
}
if(strlen($error) == 0)
{
$success .= "The network table has been flushed";