From a42b5b38cf40f100b9392c8bf0e5cf7f59a8ec96 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sun, 8 Dec 2019 23:00:38 +0000 Subject: [PATCH] Reinstall lost database query instruction. Signed-off-by: DL6ER --- scripts/pi-hole/php/database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pi-hole/php/database.php b/scripts/pi-hole/php/database.php index 060ce6fd..2613b1c6 100644 --- a/scripts/pi-hole/php/database.php +++ b/scripts/pi-hole/php/database.php @@ -166,7 +166,7 @@ function add_to_table($db, $table, $domains, $comment, $wildcardstyle=false, $re return $num; else { - $finalcount = intval($countquery); + $finalcount = intval($db->querySingle($countquery)); $modified = $finalcount - $initialcount; // If we add less domains than the user specified, then they wanted to add duplicates