summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9257a76)
raw | patch | inline | side by side (parent: 9257a76)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 24 Oct 2005 11:51:28 +0000 (11:51 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 24 Oct 2005 11:51:28 +0000 (11:51 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1679 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/applications/class_applicationGeneric.inc | patch | blob | history |
diff --git a/plugins/admin/applications/class_applicationGeneric.inc b/plugins/admin/applications/class_applicationGeneric.inc
index 7dd82fdc8b18a7e3969d656d6ce66564bb63105e..5b5ed3b3c79af05219ec433b76179287bbf91e10 100644 (file)
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".