diff options
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 6e5e321..fcdabac 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -63,6 +63,10 @@ function return_dir_as_array($dir) { function return_filename_as_string($filename) { $tmp = ""; $fd = fopen($filename, "r"); + if(!$fd) { + log_error("Could not open {$filename}"); + return; + } while(!feof($fd)) { $tmp .= fread($fd,49); } |