mirror of
https://github.com/pi-hole/web.git
synced 2026-04-24 18:59:48 +01:00
Pass group_enabled boolean to web interface and show if entry was disabled due to group setting. Although the current web interface does not support group-based management, this may aid in debugging if users interact the database directly.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -20,7 +20,7 @@ $db = SQLite3_connect($GRAVITYDB);
|
||||
function getTableContent($listname) {
|
||||
global $db;
|
||||
$entries = array();
|
||||
$results = $db->query("SELECT * FROM $listname");
|
||||
$results = $db->query("SELECT a.*,b.enabled AS group_enabled FROM $listname a INNER JOIN domain_groups b ON b.id = a.group_id");
|
||||
|
||||
while($results !== false && $res = $results->fetchArray(SQLITE3_ASSOC))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user