Skip to content

Commit

Permalink
cache: fix possible warning on cache init
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed May 1, 2014
1 parent 9b34d75 commit 3174559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/cache/Cache_File.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function __construct($cacheDir, $compressThreshold = 0, $igbinary = null)
throw new Exception($cacheDir . ' is not writable');
}
} else {
if (!mkdir($cacheDir, 0775))
if (!is_dir($cacheDir) && !mkdir($cacheDir, 0775))
throw new Exception($cacheDir . ' could not be created');
@ chmod($cacheDir, 0775);
}
Expand Down

0 comments on commit 3174559

Please sign in to comment.