mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Merge pull request #578 from torrentpier/bugfix/create-cache-file-for-template
Fixed checking exists a file to create a cache
This commit is contained in:
commit
7d9f1a968e
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ function file_write($str, $file, $max_size = LOG_MAX_SIZE, $lock = true, $replac
|
|||
rename($file, $new_name);
|
||||
}
|
||||
}
|
||||
if (file_exists($file) && $dir_created = bb_mkdir(dirname($file))) {
|
||||
if (!file_exists($file) && $dir_created = bb_mkdir(dirname($file))) {
|
||||
$fp = fopen($file, 'ab+');
|
||||
}
|
||||
if (isset($fp)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue