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";