reduce code by implementing function to create $to, $cc and $bcc strings
[squirrelmail.git] / functions / abook_local_file.php
index 904893e4ca7349b9487d0f0d81477b5595403de5..b91af2bc1b5a29ac9fc730d28593c5d5e5cf7c66 100644 (file)
@@ -134,6 +134,7 @@ class abook_local_file extends addressbook_backend {
     /* Overwrite the file with data from $rows
      * NOTE! Previous locks are broken by this function */
     function overwrite(&$rows) {
+        $this->unlock();
         $newfh = @fopen($this->filename, 'w');
         if(!$newfh) {
             return $this->set_error("$file: " . _("Open failed"));