Also show "N/A" if the name column is NULL

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2019-05-30 12:48:53 +02:00
committed by Mcat12
parent a027715247
commit 83013993cd
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/* Pi-hole: A black hole for Internet advertisements
* (c) 2017 Pi-hole, LLC (https://pi-hole.net)
* (c) 2019 Pi-hole, LLC (https://pi-hole.net)
* Network-wide ad blocking via your own hardware.
*
* This file is copyright under the latest version of the EUPL.

View File

@@ -105,7 +105,7 @@ $(document).ready(function() {
}
// Set hostname to "N/A" if not available
if(data["name"] && data["name"].length < 1)
if(!data["name"] || data["name"].length < 1)
{
$("td:eq(3)", row).html("N/A");
}