mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
Also show "N/A" if the name column is NULL
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user