index b6e1126eb11db4b11397add3e97a808776444576..229941f77ed9648553b9a9e2ef68ecbb3d2c6322 100644 (file)
$smarty->assign("resolved_users_count",count($tmp));
$smarty->assign("resolve_filter",$this->resolve_filter);
}
+
+ $base_to_append = $this->base;
+ if(strlen($base_to_append) > 20){
+ $base_to_append = substr($base_to_append,0,17)."...";
+ }
+ $smarty->assign("base_to_append",$base_to_append);
return($smarty -> fetch (get_template_path("../setup/setup_ldap.tpl")));
}
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];
}