From 2386a56d1a0e7f4b48f15290f6b118590ab38483 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 24 May 2007 12:14:06 +0000 Subject: [PATCH] Fixed warning if naming Context was not readable git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6466 594d385d-05f5-0310-b6e9-bd551577e9d8 --- setup/class_setupStep_Ldap.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/class_setupStep_Ldap.inc b/setup/class_setupStep_Ldap.inc index 6b6053469..b2c467ef6 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]; } -- 2.30.2