From 1719397114532f708b3d6e0b8739113e36a40b22 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 11 Apr 2008 15:03:26 +0000 Subject: [PATCH] Added error message git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10369 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/fai/admin/fai/class_faiPackageConfiguration.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/fai/admin/fai/class_faiPackageConfiguration.inc b/gosa-plugins/fai/admin/fai/class_faiPackageConfiguration.inc index 8e25ce499..4e6ebf517 100644 --- a/gosa-plugins/fai/admin/fai/class_faiPackageConfiguration.inc +++ b/gosa-plugins/fai/admin/fai/class_faiPackageConfiguration.inc @@ -21,7 +21,10 @@ class faiPackageConfiguration extends plugin /* Read pkg debconf info */ $q = new gosaSupportDaemon(); - $ret = $q->FAI_get_packages($this->release,array("template"),array($this->obj)); + $ret = $q->FAI_get_packages($this->release,array("package","template"),array($this->obj)); + if($q->is_error()){ + msg_dialog::display(_("Service infrastructure"),msgPool::siError($q->get_error()),ERROR_DIALOG); + } $tpl = ""; if(isset($ret['ANSWER1']) && isset($ret['ANSWER1']['TEMPLATE'])){ $tpl = base64_decode($ret['ANSWER1']['TEMPLATE']); -- 2.30.2