From: hickert Date: Thu, 24 May 2007 11:48:28 +0000 (+0000) Subject: Fixed undefined index X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=427822225fba88d2354ce4314be3423acc233cfd;p=gosa.git Fixed undefined index git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6465 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/setup/class_setupStep_Ldap.inc b/setup/class_setupStep_Ldap.inc index b6e1126eb..8bd9076e7 100644 --- a/setup/class_setupStep_Ldap.inc +++ b/setup/class_setupStep_Ldap.inc @@ -143,7 +143,7 @@ class Step_Ldap extends setup_step if($reset){ $this->parent->disable_steps_from(($this->parent->step_name_to_id(get_class($this))) +1); $attr = @LDAP::get_naming_contexts($this->connection); - if(!in_array(get_post("base"),$attr)){ + if(is_array($attr) && !in_array(get_post("base"),$attr)){ if(isset($attr[0])){ $this->base = $attr[0]; }