From dc61eb82d4b33df02ba68432e00a334453a80331 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sun, 19 Feb 2017 19:10:49 +0100 Subject: [PATCH] Show summary if no arguments are passed to API --- api_FTL.php | 2 +- scripts/pi-hole/php/data.php | 3 +-- scripts/pi-hole/php/func.php | 4 +--- 3 files changed, 3 insertions(+), 6 deletions(-) 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. */ - - -