Commit 2059371dc2bfb986a1e00fd1b106747ba4e5da18
1 parent
669f30b5
Can't use $this in connect, since we're a static function. Use the
class name instead. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4846 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
thirdparty/pear/Net/LDAP.php
| @@ -140,7 +140,7 @@ define ('NET_LDAP_ERROR', 1000); | @@ -140,7 +140,7 @@ define ('NET_LDAP_ERROR', 1000); | ||
| 140 | function &connect($config = array()) | 140 | function &connect($config = array()) |
| 141 | { | 141 | { |
| 142 | if (!function_exists('ldap_connect')){ | 142 | if (!function_exists('ldap_connect')){ |
| 143 | - return $this->raiseError("It seems that you do not have the ldap-extension installed. Please install it before using this package."); | 143 | + return Net_LDAP::raiseError("It seems that you do not have the ldap-extension installed. Please install it before using this package."); |
| 144 | } | 144 | } |
| 145 | @$obj =& new Net_LDAP($config); | 145 | @$obj =& new Net_LDAP($config); |
| 146 | $err = $obj->bind(); | 146 | $err = $obj->bind(); |