summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/guiconfig.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc
index 443e847..939f01d 100755
--- a/usr/local/www/guiconfig.inc
+++ b/usr/local/www/guiconfig.inc
@@ -752,7 +752,7 @@ function dump_clog($logfile, $tail, $withorig = true, $grepfor = "", $grepinvert
if(is_array($grepinvert))
foreach($grepinvert as $agrep)
$grepline .= " | grep -v \"$agrep\"";
- if(filesize("{$logfile}") == 0) {
+ if(file_exists($logfile && filesize($logfile) == 0) {
$logarr = array("Log file started.");
} else {
if($config['system']['disablesyslogclog'])
OpenPOWER on IntegriCloud