From b9f0e432a89cf7efec7a41a68b282fc3bc52e651 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Wed, 21 Dec 2016 14:58:32 +0100 Subject: [PATCH] mend --- scripts/pi-hole/php/data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }