mirror of
https://github.com/processwire/processwire.git
synced 2025-08-15 03:05:26 +02:00
Fix issue processwire/processwire-issues#1352
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user