From 8d527cf6ab2f24691e1da60bfaab49574cb60207 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 15 May 2006 09:07:24 +0000 Subject: [PATCH] Fixed layout for emtpy lists git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3332 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_MultiSelectWindow.inc | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/include/class_MultiSelectWindow.inc b/include/class_MultiSelectWindow.inc index b3df504d6..8e9f0feda 100644 --- a/include/class_MultiSelectWindow.inc +++ b/include/class_MultiSelectWindow.inc @@ -516,19 +516,18 @@ class MultiSelectWindow{ } } - /* Add to divlist */ $row = array(); - $row[] = $field1 = array("string" => "department", "attach" => "style='text-align:center;width:20px;'"); - $row[] = $field2 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "style=''"); + $row[]=$field1=array("string"=>"department","attach"=>"style='text-align:center;width:20px;'"); + $row[]=$field2=array("string"=>sprintf($linkopen,base64_encode($key),$val), "attach" => "style=''"); if($numtabs > 2){ for($i = 2 ; $i <$numtabs;$i++){ - if($i ==($numtabs-1)){ - $row[] = array("string"=>" ","attach" => "style='width:60px;border-right:0px;text-align:right;'"); - }else{ - $row[] = array("string"=>" "); - } + if(isset( $this->array_Header[$i]['attach'])){ + $row[] = array("string"=>" ","attach" => $this->array_Header[$i]['attach']); + }else{ + $row[] = array("string"=>" "); + } } } -- 2.30.2