From: hickert Date: Tue, 8 Nov 2005 10:06:42 +0000 (+0000) Subject: Add an empty line to an empty list X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=01e44c4ad44dd93e563060c71c9edf939a93facc;p=gosa.git Add an empty line to an empty list git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1872 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiPackageEntry.inc b/plugins/admin/fai/class_faiPackageEntry.inc index c13f15350..6f7acc8b6 100644 --- a/plugins/admin/fai/class_faiPackageEntry.inc +++ b/plugins/admin/fai/class_faiPackageEntry.inc @@ -109,6 +109,7 @@ class faiPackageEntry extends plugin } } + $cnt = 0; foreach($pkgs as $pkg){ if((preg_match("/^".str_replace("*",".*",$this->searchStrPKG)."/i",$pkg[0]))|| (preg_match("/^".str_replace("*",".*",$this->searchStrPKG)."/i",$pkg[3]))){ @@ -118,6 +119,7 @@ class faiPackageEntry extends plugin }else{ $check = ""; } + $cnt ++ ; $chkbox = " "; $divlist->AddEntry(array(array("string"=>$chkbox), @@ -128,6 +130,15 @@ class faiPackageEntry extends plugin } } + /* Add an empty line if list is empty */ + if($cnt ==0){ + $divlist->AddEntry(array(array("string"=>" "), + array("string"=>" "), + array("string"=>" "), + array("string"=>" ","attach"=>"style='border-right:0px'"))); + } + + $_SESSION['searchStrPKG'] = $this->searchStrPKG; $smarty->assign("CHKS" , $CHKS); $smarty->assign("searchStrPKG" , $this->searchStrPKG);