From d35c7c4a1ab107bd6ea859a22060e4d7e1fecf17 Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Fri, 20 Jun 2008 19:08:37 +0000 Subject: Attempt better fix at non existant file --- etc/inc/pfsense-utils.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/inc') diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index d906900..3ec1bf1 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -4258,7 +4258,8 @@ function return_gateways_status() { global $g; $apingerstatus = array(); - $apingerstatus = @file("{$g['tmp_path']}/apinger.status"); + if(is_readable("{$g['tmp_path']}/apinger.status")) + $apingerstatus = file("{$g['tmp_path']}/apinger.status"); foreach($apingerstatus as $line) { $fields = explode(":", $line); @@ -4291,7 +4292,6 @@ function return_gateways_status() { break; } } - return($status); } -- cgit v1.1