Regex IDs start from 1 by default. 0 means the query has been imported from the database. It makes no sense to show a link when we don't know which regex was responsible for blocking (this is not stored in the database).

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2020-02-14 17:54:34 +01:00
parent 1d7889d754
commit facb5b07a9
+2 -2
View File
@@ -199,7 +199,7 @@ $(document).ready(function() {
colorClass = "text-red";
fieldtext = "Blocked <br class='hidden-lg'>(regex blacklist)";
if (data.length > 9 && data[9] > -1) {
if (data.length > 9 && data[9] > 0) {
fieldtext =
"<a href='groups-domains.php?domainid=" +
data[9] +
@@ -251,7 +251,7 @@ $(document).ready(function() {
colorClass = "text-red";
fieldtext = "Blocked <br class='hidden-lg'>(regex blacklist, CNAME)";
if (data.length > 9 && data[9] > -1) {
if (data.length > 9 && data[9] > 0) {
fieldtext =
"<a href='groups-domains.php?domainid=" +
data[9] +