From 4fec7142077ce5b5cfe3d19700b57f133b1e0a43 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 5 Mar 2008 09:03:15 +0000 Subject: [PATCH] Updated get_ldap_link git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9339 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_config.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-core/include/class_config.inc b/gosa-core/include/class_config.inc index 9ade720a7..963db36b3 100644 --- a/gosa-core/include/class_config.inc +++ b/gosa-core/include/class_config.inc @@ -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'], -- 2.30.2