Eliminate PHP notices. Thanks to Pablo Alvarez de Sotomayor Posadillo
[squirrelmail.git] / functions / addressbook.php
index 3b2fe54f4a51931ec0d7793777b36aa9aa662496..0c68958d225c623c99938a60addbeff64a61f451 100644 (file)
@@ -606,6 +606,10 @@ class AddressBook {
      *                       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 mixed Array with lookup results when the value
      *               was found, an empty array if the value was
@@ -929,6 +933,10 @@ class addressbook_backend {
      * @param integer $field The field to look in, should be one
      *                       of the SM_ABOOK_FIELD_* constants
      *                       defined in include/constants.php
+     *                       NOTE: uniqueness is only guaranteed
+     *                       when the nickname field is used here;
+     *                       otherwise, the first matching address
+     *                       is returned.
      *
      * @return mixed Array with lookup results when the value
      *               was found, an empty array if the value was