changes as requested
changes as requested Signed-off-by: Rob Gill <rrobgill@protonmail.com>
This commit is contained in:
parent
5e99baf7b9
commit
9379487942
|
@ -103,7 +103,7 @@ $bpAskAdmin = !empty($svEmail) ? '<a href="mailto:'.$svEmail.'?subject=Site Bloc
|
||||||
|
|
||||||
// Determine if at least one block list has been generated
|
// Determine if at least one block list has been generated
|
||||||
$blocklistglob = glob("/etc/pihole/list.0.*.domains");
|
$blocklistglob = glob("/etc/pihole/list.0.*.domains");
|
||||||
if ($blocklistglob = "") {
|
if($blocklistglob === array()) {
|
||||||
die("[ERROR] There are no domain lists generated lists within <code>/etc/pihole/</code>! Please update gravity by running <code>pihole -g</code>, or repair Pi-hole using <code>pihole -r</code>.");
|
die("[ERROR] There are no domain lists generated lists within <code>/etc/pihole/</code>! Please update gravity by running <code>pihole -g</code>, or repair Pi-hole using <code>pihole -r</code>.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue