Skip to content

Commit e892a5c

Browse files
committed
Fixed possible notice in some contexts
1 parent aa54fa2 commit e892a5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Phpfastcache/Core/Pool/IO/IOHelperTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ protected function getFilePath($keyword, $skip = false): string
162162
/**
163163
* Skip Create Sub Folders;
164164
*/
165-
if (!$skip && @!\mkdir($path, $this->getDefaultChmod(), true) && !\is_dir($path)) {
165+
if (!$skip && !\is_dir($path) && @!\mkdir($path, $this->getDefaultChmod(), true) && !\is_dir($path)) {
166166
throw new PhpfastcacheIOException('PLEASE CHMOD ' . $path . ' - ' . $this->getDefaultChmod() . ' OR ANY WRITABLE PERMISSION!');
167167
}
168168

0 commit comments

Comments
 (0)