mirror of
https://github.com/pi-hole/web.git
synced 2026-02-15 07:25:39 +00:00
Add per-browser setting to ignore non-fatal dnsmasq warnings
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -384,7 +384,10 @@ if (isset($_GET['getGraphData']) && $auth)
|
||||
|
||||
if (isset($_GET['status']))
|
||||
{
|
||||
$results = $db->query('SELECT COUNT(*) FROM message;');
|
||||
$extra = ";";
|
||||
if(isset($_GET["ignore"]) && $_GET["ignore"] === 'DNSMASQ_WARN')
|
||||
$extra = "WHERE type != 'DNSMASQ_WARN';";
|
||||
$results = $db->query('SELECT COUNT(*) FROM message '.$extra);
|
||||
|
||||
if(!is_bool($results))
|
||||
$result = array('message_count' => $results->fetchArray()[0]);
|
||||
|
||||
Reference in New Issue
Block a user