Bugfix: MailSo ResponseCollection undefined oLogger

Bugfix: MailSo cache driver file, no need for double mkdir()
This commit is contained in:
djmaze 2020-09-15 15:27:15 +02:00
parent e99a69a9aa
commit aa3f71d299
3 changed files with 7 additions and 12 deletions

View file

@ -92,15 +92,10 @@ class File implements \MailSo\Cache\DriverInterface
$sKeyPath = \substr($sKeyPath, 0, 2).'/'.\substr($sKeyPath, 2, 2).'/'.$sKeyPath;
$sFilePath = $this->sCacheFolder.$this->sKeyPrefix.$sKeyPath;
if ($bMkDir && !\is_dir(\dirname($sFilePath)))
$dir = \dirname($sFilePath);
if ($bMkDir && !\is_dir($dir) && !\mkdir($dir, 0755, true))
{
if (!\mkdir(\dirname($sFilePath), 0755, true))
{
if (!\mkdir(\dirname($sFilePath), 0755, true))
{
$sFilePath = '';
}
}
$sFilePath = '';
}
}