From: hickert Date: Wed, 5 Mar 2008 09:02:41 +0000 (+0000) Subject: Updated get_ldap_link X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7738ba30cf9161d2906d1e96fa98f7048b948bef;p=gosa.git Updated get_ldap_link git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@9338 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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'],