Permalink
Browse files

Small fix, the constructor should not return anything. Thanks to Mike…

… Wallner for pointing this out.

git-svn-id: http://svn.php.net/repository/pear/packages/Net_LDAP/branches/NET_LDAP_0_6@162827 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 0d36f48 commit 98e3a9a627cfce70a41c6ba26362fa91730dcc5b Tarjei Huse committed Jul 7, 2004
Showing with 3 additions and 3 deletions.
  1. +3 −3 LDAP.php
View
@@ -102,9 +102,6 @@ class Net_LDAP extends PEAR
*/
function Net_LDAP($_config = array())
{
- if (!function_exists('ldap_connect')){
- return $this->raiseError("It seems that you do not have the ldap-extension installed. Please install it before using this package.");
- }
foreach ($_config as $k => $v) {
$this->_config[$k] = $v;
}
@@ -123,6 +120,9 @@ function Net_LDAP($_config = array())
*/
function &connect($config = array())
{
+ if (!function_exists('ldap_connect')){
+ return $this->raiseError("It seems that you do not have the ldap-extension installed. Please install it before using this package.");
+ }
@$obj = & new Net_LDAP($config);
$err = $obj->bind();

0 comments on commit 98e3a9a

Please sign in to comment.