From 06a949e5d112120be2de0d7fe9f84459b0635d37 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 17 Dec 2008 13:07:09 +0000 Subject: [PATCH] Only add opsi if the plugin is installed git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13306 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/admin/systems/goto/class_SelectDeviceType.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/goto/admin/systems/goto/class_SelectDeviceType.inc b/gosa-plugins/goto/admin/systems/goto/class_SelectDeviceType.inc index 0c4beff9c..d92bb51d1 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_SelectDeviceType.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_SelectDeviceType.inc @@ -36,7 +36,10 @@ class SelectDeviceType extends plugin asort($tmp, SORT_LOCALE_STRING); $this->ObjectGroups= $tmp; - $this->SystemTypes =array("workstation"=>_("Workstation"), "terminal"=>_("Terminal"), "server"=>_("Server"), "opsi_client"=>_("Windows workstation")); + $this->SystemTypes =array("workstation"=>_("Workstation"), "terminal"=>_("Terminal"), "server"=>_("Server")); + if(class_available("opsi")){ + $this->SystemTypes["opsi_client"]= _("Windows workstation"); + } } function execute() -- 2.30.2