From f92812d4cd849b35a6dd60487bc0853ad18c0f63 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sun, 19 Jan 2020 22:32:28 +0100 Subject: [PATCH] Substitute null client names by empty strings. Signed-off-by: DL6ER --- scripts/pi-hole/php/groups.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pi-hole/php/groups.php b/scripts/pi-hole/php/groups.php index ff6f7aa5..252e52cd 100644 --- a/scripts/pi-hole/php/groups.php +++ b/scripts/pi-hole/php/groups.php @@ -209,7 +209,7 @@ if ($_POST['action'] == 'get_groups') { // Loop over results $ips = array(); while ($res = $query->fetchArray(SQLITE3_ASSOC)) { - $ips[$res['ip']] = $res['name']; + $ips[$res['ip']] = $res['name'] !== null ? $res['name'] : ''; } $FTLdb->close();