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 8e724547e59486462fd12c08173a15e076d4b234..82e16b860460787db81b19c572d193f15ddcac62 100644 (file)
@@ -61,6 +61,7 @@ function writecalendardata() {
 
         }
         fclose ($fp);
+        @unlink($filename);
         rename($filetmp,$filename);
     }
 }