Fix PHP notice - this function is called statically, so needs to be declared as such...
[squirrelmail.git] / functions / abook_ldap_server.php
index 0171685e9c818b43cadf07d41544720137186377..57f5a16518082bb8f2c760cce4c4362a58c5641e 100644 (file)
@@ -18,7 +18,7 @@
  * and inetOrgPerson (RFC2798) objects and dn, description, sn, givenname,
  * cn, mail attributes. Other attributes are ignored.
  * 
- * @copyright 1999-2012 The SquirrelMail Project Team
+ * @copyright 1999-2015 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
@@ -772,7 +772,7 @@ class abook_ldap_server extends addressbook_backend {
     function lookup($value, $field=SM_ABOOK_FIELD_NICKNAME) {
 
 
-        $attr = $this->get_attr_name($field);
+        $attr = get_attr_name($field);
         if ($attr == 'ERROR') {
             return $this->set_error(sprintf(_("Unknown field name: %s"), $field));
         }