From 008a558b8abdefe2ae7f91cedb1303e2421c08ca Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 24 Oct 2005 11:51:28 +0000 Subject: [PATCH] if application parameter is empty, it is also shown in list git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1679 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/applications/class_applicationGeneric.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/admin/applications/class_applicationGeneric.inc b/plugins/admin/applications/class_applicationGeneric.inc index 7dd82fdc8..5b5ed3b3c 100644 --- a/plugins/admin/applications/class_applicationGeneric.inc +++ b/plugins/admin/applications/class_applicationGeneric.inc @@ -79,13 +79,13 @@ class application extends plugin foreach($names as $index => $name){ // Fix length - if (strlen($name) < 35){ - $name= sprintf("%.35s", $name); + for($i = strlen($name) ; $i < 30 ; $i ++){ + $name= $name." "; } - if(isset($values[$index])){ - $str.= "# ".$name."\t\t(e.g. ".$values[$index].")\n"; + if((isset($values[$index]))&&(!empty($values[$index]))){ + $str.= "# ".$name."\t(e.g. '".$values[$index]."')\n"; }else{ - $str.= "# ".$name."\n"; + $str.= "# ".$name."\t(e.g. '' (empty))\n"; } } $str .= "#\n". -- 2.30.2