From: hickert Date: Mon, 24 Oct 2005 11:51:28 +0000 (+0000) Subject: if application parameter is empty, it is also shown in list X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=008a558b8abdefe2ae7f91cedb1303e2421c08ca;p=gosa.git 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 --- 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".