Code

Fixed undefined index Description
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 21 Nov 2005 08:06:12 +0000 (08:06 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 21 Nov 2005 08:06:12 +0000 (08:06 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1988 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_debconfTemplate.inc

index 5b0bd2915d84cefcb17aa127193b70d40750df4f..a4d203c7b232d1801d1c5c0404a162c266722119 100644 (file)
@@ -94,6 +94,7 @@ class debconf
         if (!$got_local_description && preg_match("/^Description: /", $line)){
           $description= trim(preg_replace("/^Description: (.*)$/", "\\1", $line));
           $this->template[$name]['Topic']= $description;
+          $this->template[$name]['Description']= "";
           $in_description= TRUE;
           continue;
         }
@@ -148,7 +149,7 @@ class debconf
 
   function has_template()
   {
-    return ($has_template);
+    return ($this->has_template);
   }
 
 
@@ -297,8 +298,8 @@ class debconf
 }
 
 # Example:
-# $debconf= new debconf("xserver-xorg", "de");
-echo $debconf->get_dialog();
+$debconf= new debconf("libnss-ldap", "de");
+echo $debconf->get_dialog();
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>