projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Properly retains the mailbox when you use the HTML addressbook
[squirrelmail.git]
/
functions
/
abook_local_file.php
diff --git
a/functions/abook_local_file.php
b/functions/abook_local_file.php
index ab2be30eb6c6159c7e90058f5f9e6cf8e80a82b9..26588d117801eeea8cae662b9c7f49d72f26384b 100644
(file)
--- 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
// 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"));
$newfh = @fopen($this->filename, 'w');
if(!$newfh)
return $this->set_error("$file: " . _("Open failed"));
@@
-286,7
+286,7
@@
}
// Write data back
}
// Write data back
- if(!$this->overwrite(
&
$rows)) {
+ if(!$this->overwrite($rows)) {
$this->unlock();
return false;
}
$this->unlock();
return false;
}
@@
-330,7
+330,7
@@
}
// Write data back
}
// Write data back
- if(!$this->overwrite(
&
$rows)) {
+ if(!$this->overwrite($rows)) {
$this->unlock();
return false;
}
$this->unlock();
return false;
}