From: cajus Date: Wed, 17 Dec 2008 13:07:09 +0000 (+0000) Subject: Only add opsi if the plugin is installed X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=06a949e5d112120be2de0d7fe9f84459b0635d37;p=gosa.git Only add opsi if the plugin is installed git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13306 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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()