Skip to content

Commit

Permalink
Merge pull request #2235 from pi-hole/clean_pihole_execute
Browse files Browse the repository at this point in the history
Remove unused parameter
  • Loading branch information
yubiuser authored Jun 27, 2022
2 parents 9331473 + 245583c commit 3f5e1ad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/pi-hole/php/func.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,8 @@ function hash_equals($known_string, $user_string) {
* 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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 3f5e1ad

Please sign in to comment.