mirror of
https://github.com/processwire/processwire.git
synced 2025-08-18 12:31:17 +02:00
Fix issue processwire/processwire-issues#1352
This commit is contained in:
@@ -406,6 +406,8 @@ class FileLog extends Wire {
|
|||||||
*/
|
*/
|
||||||
public function getTotalLines() {
|
public function getTotalLines() {
|
||||||
|
|
||||||
|
if(!is_readable($this->logFilename)) return 0;
|
||||||
|
|
||||||
if(filesize($this->logFilename) < $this->chunkSize) {
|
if(filesize($this->logFilename) < $this->chunkSize) {
|
||||||
$data = file($this->logFilename);
|
$data = file($this->logFilename);
|
||||||
return count($data);
|
return count($data);
|
||||||
|
Reference in New Issue
Block a user