Code

Updated get_ldap_link
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Mar 2008 09:02:41 +0000 (09:02 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Mar 2008 09:02:41 +0000 (09:02 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@9338 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_config.inc

index 209d1f83ab055dc834cdd9412ff6142f0a7bb0ff..7b55d77337bbeaf03a17f25be40dd6ffb37f0435 100644 (file)
@@ -181,8 +181,7 @@ class config  {
 
   function get_ldap_link($sizelimit= FALSE)
   {
-
-    if(!is_resource($this->ldap->cid)){
+    if($this->ldap === NULL || !is_resource($this->ldap->cid)){
 
       /* Build new connection */
       $this->ldap= ldap_init ($this->current['SERVER'], $this->current['BASE'],