From 4c7458e41000f0f3292ccdf183d1058de7e0b5b7 Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 18 Apr 2011 15:17:23 -0400 Subject: Check that this file exists before trying to use it. Should stop GUI and console errors that the file doesn't exist. --- config/squidGuard/squidguard_configurator.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/squidGuard/squidguard_configurator.inc b/config/squidGuard/squidguard_configurator.inc index 7db0f8ff..c9dc7aed 100644 --- a/config/squidGuard/squidguard_configurator.inc +++ b/config/squidGuard/squidguard_configurator.inc @@ -578,7 +578,7 @@ function sg_remove_unused_db_entries() # black list entries # * worked only with 'blacklist entries list file - else may be deleted black list entry - if (SQUIDGUARD_BLK_FILELISTPATH) { + if (file_exists(SQUIDGUARD_BLK_FILELISTPATH)) { $file_for_del = array(); # load blk entries -- cgit v1.2.3