diff --git a/scripts/pi-hole/php/data.php b/scripts/pi-hole/php/data.php index 1c255e6d..9d1e9390 100644 --- a/scripts/pi-hole/php/data.php +++ b/scripts/pi-hole/php/data.php @@ -5,7 +5,7 @@ $hosts = file_exists("/etc/hosts") ? file("/etc/hosts") : array(); function checkfile($filename) { - if(file_readable($filename)) + if(is_readable($filename)) { return $filename; }