1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-27 17:00:52 +01:00

bugfix: sometimes this acts weird

This commit is contained in:
Michael Foster 2013-08-12 23:35:27 +10:00
parent 6a1e8e834b
commit 6fdbe76f7b

View File

@ -279,7 +279,10 @@ if (isset($_POST['delete'])) {
error($config['error']['unknownext']);
$post['file_tmp'] = tempnam($config['tmp'], 'url');
register_shutdown_function('unlink', $post['file_tmp']);
function unlink_tmp_file($file) {
@unlink($file);
}
register_shutdown_function('unlink_tmp_file', $post['file_tmp']);
$fp = fopen($post['file_tmp'], 'w');