From: hickert Date: Mon, 21 Nov 2005 08:06:12 +0000 (+0000) Subject: Fixed undefined index Description X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5a4d7f3a39a2c4e6326e2298ad1fdaacaf41f82f;p=gosa.git Fixed undefined index Description git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1988 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_debconfTemplate.inc b/include/class_debconfTemplate.inc index 5b0bd2915..a4d203c7b 100644 --- a/include/class_debconfTemplate.inc +++ b/include/class_debconfTemplate.inc @@ -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: ?>