projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Put info about the user/group of the web server in the configtest. Grabbing that...
[squirrelmail.git]
/
functions
/
abook_local_file.php
diff --git
a/functions/abook_local_file.php
b/functions/abook_local_file.php
index f72796b496dfb2edb5ea7e12d9ad0a5eda463152..d29474f6d4cdd8cae463283e6bb53af96d9cc88f 100644
(file)
--- a/
functions/abook_local_file.php
+++ b/
functions/abook_local_file.php
@@
-151,7
+151,7
@@
class abook_local_file extends addressbook_backend {
$this->error = '';
$file = $this->filename;
$create = $this->create;
$this->error = '';
$file = $this->filename;
$create = $this->create;
- $fopenmode = (($this->writeable && is_writable($file)) ? 'a+' : 'r');
+ $fopenmode = (($this->writeable &&
sq_
is_writable($file)) ? 'a+' : 'r');
/* Return true is file is open and $new is unset */
if($this->filehandle && !$new) {
/* Return true is file is open and $new is unset */
if($this->filehandle && !$new) {
@@
-324,6
+324,10
@@
class abook_local_file extends addressbook_backend {
* of the SM_ABOOK_FIELD_* constants
* defined in include/constants.php
* (OPTIONAL; defaults to nickname field)
* of the SM_ABOOK_FIELD_* constants
* defined in include/constants.php
* (OPTIONAL; defaults to nickname field)
+ * NOTE: uniqueness is only guaranteed
+ * when the nickname field is used here;
+ * otherwise, the first matching address
+ * is returned.
*
* @return array Array with lookup results when the value
* was found, an empty array if the value was
*
* @return array Array with lookup results when the value
* was found, an empty array if the value was