Fix PHP "Headers already sent" warning.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
RD WebDesign
2022-03-21 12:18:15 -03:00
parent 5c57e11e66
commit 5c7fa94337

View File

@@ -1,4 +1,3 @@
<?php
/* Pi-hole: A black hole for Internet advertisements
* (c) 2021 Pi-hole, LLC (https://pi-hole.net)
@@ -8,6 +7,8 @@
* Please see LICENSE file for your rights under this license. */
require_once('auth.php');
require_once('func.php');
require_once('database.php');
// Authentication checks
if (!isset($api)) {
@@ -21,8 +22,6 @@ if (!isset($api)) {
$reload = false;
require_once('func.php');
require_once('database.php');
$QueriesDB = getQueriesDBFilename();
$db = SQLite3_connect($QueriesDB, SQLITE3_OPEN_READWRITE);