mirror of
https://github.com/pi-hole/web.git
synced 2026-02-24 11:46:02 +00:00
Show summary if no arguments are passed to API
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user