diff options
author | jim-p <jimp@pfsense.org> | 2011-04-18 15:17:23 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-04-18 15:17:23 -0400 |
commit | 4c7458e41000f0f3292ccdf183d1058de7e0b5b7 (patch) | |
tree | da08f3b74c5106e614dc7c426e0c37805dc2745b | |
parent | c7f3a9ca141386bacd285278fbda9ca087380d5c (diff) | |
download | pfsense-packages-4c7458e41000f0f3292ccdf183d1058de7e0b5b7.tar.gz pfsense-packages-4c7458e41000f0f3292ccdf183d1058de7e0b5b7.tar.bz2 pfsense-packages-4c7458e41000f0f3292ccdf183d1058de7e0b5b7.zip |
Check that this file exists before trying to use it. Should stop GUI and console errors that the file doesn't exist.
-rw-r--r-- | config/squidGuard/squidguard_configurator.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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 |