mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
Fix logging file existence check
This commit is contained in:
parent
d954957fe3
commit
69aa9f6c6e
|
|
@ -524,7 +524,7 @@ class FileLogger implements LoggerInterface
|
|||
$logs = [];
|
||||
$id = 0;
|
||||
|
||||
if (file_exists($this->path)) {
|
||||
if (!file_exists($this->path)) {
|
||||
return $logs;
|
||||
}
|
||||
|
||||
|
|
@ -571,7 +571,7 @@ class FileLogger implements LoggerInterface
|
|||
$log = [];
|
||||
$current = 0;
|
||||
|
||||
if (file_exists($this->path)) {
|
||||
if (!file_exists($this->path)) {
|
||||
return $log;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user