X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fabook_local_file.php;h=26588d117801eeea8cae662b9c7f49d72f26384b;hb=eeb44e402b11bd6d31865c963bbca5efab9b6278;hp=ab2be30eb6c6159c7e90058f5f9e6cf8e80a82b9;hpb=16a973d70a51ec3e3a171b87fcf0fc2fd5de5351;p=squirrelmail.git diff --git a/functions/abook_local_file.php b/functions/abook_local_file.php index ab2be30e..26588d11 100644 --- a/functions/abook_local_file.php +++ b/functions/abook_local_file.php @@ -125,7 +125,7 @@ // Overwrite the file with data from $rows // NOTE! Previous locks are broken by this function - function overwrite($rows) { + function overwrite(&$rows) { $newfh = @fopen($this->filename, 'w'); if(!$newfh) return $this->set_error("$file: " . _("Open failed")); @@ -286,7 +286,7 @@ } // Write data back - if(!$this->overwrite(&$rows)) { + if(!$this->overwrite($rows)) { $this->unlock(); return false; } @@ -330,7 +330,7 @@ } // Write data back - if(!$this->overwrite(&$rows)) { + if(!$this->overwrite($rows)) { $this->unlock(); return false; }