Fix file creation instead of directory

This commit is contained in:
Dennis Eichhorn 2016-03-27 00:39:25 +01:00
parent 6ec9b7fd84
commit 4a6c877443

View File

@ -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);
}