Code

Only add opsi if the plugin is installed
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Dec 2008 13:07:09 +0000 (13:07 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Dec 2008 13:07:09 +0000 (13:07 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13306 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_SelectDeviceType.inc

index 0c4beff9ce43f73910ab767b9989eaa1c1301c0e..d92bb51d1b79e4678682e783d9476c5ba1079e90 100644 (file)
@@ -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()