mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +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);
|
||||
}
|
||||
|
||||
if (is_dir($lpath)) {
|
||||
if (is_dir($lpath) || strpos($lpath, '.') === false) {
|
||||
if (!file_exists($lpath)) {
|
||||
mkdir($lpath, 0644, true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user