From: pdontthink Date: Fri, 18 Apr 2003 09:55:26 +0000 (+0000) Subject: Minor fix for people who saw fatal errors trying to overwrite with the rename command. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1d461a185142e93a21845550100bdcd09ff080b1;p=squirrelmail.git Minor fix for people who saw fatal errors trying to overwrite with the rename command. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4777 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/plugins/calendar/calendar_data.php b/plugins/calendar/calendar_data.php index 8e724547..82e16b86 100644 --- a/plugins/calendar/calendar_data.php +++ b/plugins/calendar/calendar_data.php @@ -61,6 +61,7 @@ function writecalendardata() { } fclose ($fp); + @unlink($filename); rename($filetmp,$filename); } }