From 6d85e28d5371ecbb9b8c49e79478b8d20e818a06 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 1 Dec 2005 11:45:07 +0000 Subject: [PATCH] Fix script update git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2178 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/applications/class_applicationGeneric.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/admin/applications/class_applicationGeneric.inc b/plugins/admin/applications/class_applicationGeneric.inc index 48615401f..c04abdbeb 100644 --- a/plugins/admin/applications/class_applicationGeneric.inc +++ b/plugins/admin/applications/class_applicationGeneric.inc @@ -81,8 +81,12 @@ class application extends plugin function generateTempalte(){ $str= "# This code is part of GOsa (https://gosa.gonicus.de)\n#\n"; - $names = $this->parent->by_object['applicationParameters']->option_name; - $values = $this->parent->by_object['applicationParameters']->option_value; + $values = array(); + $names = array(); + if($this->parent->by_object['applicationParameters']->is_account){ + $names = $this->parent->by_object['applicationParameters']->option_name; + $values = $this->parent->by_object['applicationParameters']->option_value; + } if (count($names)){ $str .="# This plugin handles these environment variables:\n"; -- 2.30.2