From 7738ba30cf9161d2906d1e96fa98f7048b948bef Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 5 Mar 2008 09:02:41 +0000 Subject: [PATCH] Updated get_ldap_link git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@9338 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_config.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/class_config.inc b/include/class_config.inc index 209d1f83a..7b55d7733 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -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'], -- 2.30.2