Update functions_atom.php

This commit is contained in:
Roman Kelesidis 2023-10-28 13:59:34 +07:00
parent 8365b6bde5
commit 80908c515d

View File

@ -179,7 +179,7 @@ function create_atom ($file_path, $mode, $id, $title, $topics)
}
$atom .= "</feed>";
@unlink($file_path);
$fp = fopen($file_path, "wb");
$fp = fopen($file_path, "wb+");
fwrite($fp, $atom);
fclose ($fp);
return true;