Minor fix for people who saw fatal errors trying to overwrite with the rename command.
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 18 Apr 2003 09:55:26 +0000 (09:55 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 18 Apr 2003 09:55:26 +0000 (09:55 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4777 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/calendar/calendar_data.php

index 8e72454..82e16b8 100644 (file)
@@ -61,6 +61,7 @@ function writecalendardata() {
 
         }
         fclose ($fp);
+        @unlink($filename);
         rename($filetmp,$filename);
     }
 }