Code

if application parameter is empty, it is also shown in list
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 24 Oct 2005 11:51:28 +0000 (11:51 +0000)
committerhickert <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

index 7dd82fdc8b18a7e3969d656d6ce66564bb63105e..5b5ed3b3c79af05219ec433b76179287bbf91e10 100644 (file)
@@ -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".