mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-10 22:18:40 +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 = [];
|
$logs = [];
|
||||||
$id = 0;
|
$id = 0;
|
||||||
|
|
||||||
if (file_exists($this->path)) {
|
if (!file_exists($this->path)) {
|
||||||
return $logs;
|
return $logs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -571,7 +571,7 @@ class FileLogger implements LoggerInterface
|
||||||
$log = [];
|
$log = [];
|
||||||
$current = 0;
|
$current = 0;
|
||||||
|
|
||||||
if (file_exists($this->path)) {
|
if (!file_exists($this->path)) {
|
||||||
return $log;
|
return $log;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user