From be10a6ce7e565c2a804db552e5f38df48bf7c046 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 19 Mar 2021 09:28:34 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#1352 --- wire/core/FileLog.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wire/core/FileLog.php b/wire/core/FileLog.php index 34ee19cd..ed99d2df 100644 --- a/wire/core/FileLog.php +++ b/wire/core/FileLog.php @@ -405,6 +405,8 @@ class FileLog extends Wire { * */ public function getTotalLines() { + + if(!is_readable($this->logFilename)) return 0; if(filesize($this->logFilename) < $this->chunkSize) { $data = file($this->logFilename);