修复重命名无权限时提示问题

pull/25/head
zsx 2015-08-25 19:13:37 +08:00
parent f4e0f366f1
commit 1ac48df95a
1 changed files with 2 additions and 2 deletions

View File

@ -629,8 +629,8 @@ function file_download_this($from, $file_name){
}
//下载完成,重命名临时文件到目标文件
del_file($file_name);
rename($temp_file,$file_name);
return true;
$rename_ret = @rename($temp_file,$file_name);
return (bool)$rename_ret;
}else{
return false;
}