Code

Divlist changes
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 20 Apr 2007 12:08:16 +0000 (12:08 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 20 Apr 2007 12:08:16 +0000 (12:08 +0000)
MultiSelectWindow -> Fixed style settings for automatically added departments

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6156 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_MultiSelectWindow.inc

index c66d8f8f07449b7db05eab72bdd9c6aff7093ce1..18d1558d46a595ba4d086b4f5d4181fbde5126a3 100644 (file)
@@ -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"=>"&nbsp;","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"=>"&nbsp;","attach" => $this->array_Header[$i + $empty_tabs_in_front]['attach']);
           }else{
             $row[] = array("string"=>"&nbsp;");
           }
                                }
                        }
-
                        $this->AddElement($row);
                }
        }