From 245583c40dd6b08efbd06dcf64195165e1d21153 Mon Sep 17 00:00:00 2001 From: RD WebDesign Date: Mon, 27 Jun 2022 19:05:32 -0300 Subject: [PATCH] Remove unused parameter Signed-off-by: RD WebDesign --- scripts/pi-hole/php/func.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/pi-hole/php/func.php b/scripts/pi-hole/php/func.php index 3a7d10d7..bede54eb 100644 --- a/scripts/pi-hole/php/func.php +++ b/scripts/pi-hole/php/func.php @@ -137,9 +137,8 @@ if(!function_exists('hash_equals')) { * and returns output of that command as a string. * * @param $argument_string String of arguments to run pihole with. - * @param $error_on_failure If true, a warning is raised if command execution fails. Defaults to true. */ -function pihole_execute($argument_string, $error_on_failure = true) { +function pihole_execute($argument_string) { $escaped = escapeshellcmd($argument_string); $output = null; $return_status = -1; @@ -551,7 +550,7 @@ function getGateway() { if (array_key_exists("FTLnotrunning", $gateway)) { $ret = array("ip" => -1); } else { - $ret = array_combine(["ip", "iface"], explode(" ", $gateway[0])); + $ret = array_combine(["ip", "iface"], explode(" ", $gateway[0])); } return $ret; }