diff --git a/api_FTL.php b/api_FTL.php index 6711d545..2fec16a0 100644 --- a/api_FTL.php +++ b/api_FTL.php @@ -21,7 +21,7 @@ header('Content-type: application/json'); $data = []; -if (isset($_GET['summary']) || isset($_GET['summaryRaw'])) +if (isset($_GET['summary']) || isset($_GET['summaryRaw']) || !count($_GET)) { sendRequestFTL("stats"); $return = getResponseFTL(); diff --git a/scripts/pi-hole/php/data.php b/scripts/pi-hole/php/data.php index 289d3131..f7226698 100644 --- a/scripts/pi-hole/php/data.php +++ b/scripts/pi-hole/php/data.php @@ -4,9 +4,8 @@ * Network-wide ad blocking via your own hardware. * * This file is copyright under the latest version of the EUPL. -* Please see LICENSE file for your rights under this license. */ ?> +* Please see LICENSE file for your rights under this license. */ - - -