From: hickert Date: Fri, 20 Apr 2007 12:08:16 +0000 (+0000) Subject: Divlist changes X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=68503ecbb4d310b61ef8f1f32003fc739bacb237;p=gosa.git Divlist changes MultiSelectWindow -> Fixed style settings for automatically added departments git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6156 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_MultiSelectWindow.inc b/include/class_MultiSelectWindow.inc index c66d8f8f0..18d1558d4 100644 --- a/include/class_MultiSelectWindow.inc +++ b/include/class_MultiSelectWindow.inc @@ -672,15 +672,14 @@ class MultiSelectWindow{ $row[]=$field2=array("string"=>sprintf($linkopen,base64_encode($key),$val), "attach" => "style=''"); if($numtabs > 2){ - for($i = 3 ; $i <=$numtabs;$i++){ - if(isset( $this->array_Header[$i]['attach'])){ - $row[] = array("string"=>" ","attach" => $this->array_Header[$i]['attach']); + for($i = 2 ; $i < $numtabs;$i++){ + if(isset( $this->array_Header[$i + $empty_tabs_in_front]['attach'])){ + $row[] = array("string"=>" ","attach" => $this->array_Header[$i + $empty_tabs_in_front]['attach']); }else{ $row[] = array("string"=>" "); } } } - $this->AddElement($row); } }