Code

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

gosa-core/include/class_config.inc

index 9ade720a7bcc97c1dc754e2a436ab35af2826f07..963db36b3a45a2f95323c9076920585580c89ab0 100644 (file)
@@ -216,7 +216,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'],