From: Tomas K. <to...@us...> - 2005-03-20 10:06:13
|
Update of /cvsroot/squirrelmail/squirrelmail/functions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27148 Modified Files: abook_ldap_server.php Log Message: check if object is returned. Index: abook_ldap_server.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/functions/abook_ldap_server.php,v retrieving revision 1.28 retrieving revision 1.29 diff -u -w -r1.28 -r1.29 --- abook_ldap_server.php 27 Feb 2005 09:45:53 -0000 1.28 +++ abook_ldap_server.php 20 Mar 2005 10:05:59 -0000 1.29 @@ -161,7 +161,7 @@ $this->linkid = @ldap_connect($this->server, $this->port); if(!$this->linkid) { - if(function_exists('ldap_error')) { + if(function_exists('ldap_error') && is_object($this->linkid)) { return $this->set_error(ldap_error($this->linkid)); } else { return $this->set_error('ldap_connect failed'); |