mirror of
https://github.com/pi-hole/web.git
synced 2026-04-26 11:50:09 +01:00
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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user