mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-11 06:28:40 +00:00
Fix file creation instead of directory
This commit is contained in:
parent
6ec9b7fd84
commit
4a6c877443
|
|
@ -101,7 +101,7 @@ class FileLogger implements LoggerInterface
|
||||||
throw new PathException($lpath);
|
throw new PathException($lpath);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_dir($lpath)) {
|
if (is_dir($lpath) || strpos($lpath, '.') === false) {
|
||||||
if (!file_exists($lpath)) {
|
if (!file_exists($lpath)) {
|
||||||
mkdir($lpath, 0644, true);
|
mkdir($lpath, 0644, true);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user