Code

Updated system divlist
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 15 Oct 2008 08:41:51 +0000 (08:41 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 15 Oct 2008 08:41:51 +0000 (08:41 +0000)
-Do not use opsi ACLs if no opsi class were found.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12703 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/systems/admin/systems/class_divListSystem.inc

index 2ce3f7f100c3ca99d7e39876f2137a300a30b747..34b7bfa574c2e7a6bbca096f069d8fd91addac5a 100644 (file)
@@ -49,14 +49,12 @@ class divListSystem extends MultiSelectWindow
 
   function divListSystem (&$config,$parent)
   {
-    MultiSelectWindow::MultiSelectWindow($config, "System", array("server",
-                                                                  "workstation",
-                                                                  "terminal",
-                                                                  "phone",
-                                                                  "incoming",
-                                                                  "winworkstation",
-                                                                  "printer",
-                                                                  "opsi"));
+    $classes = array("server","workstation","terminal","phone","incoming","winworkstation","printer");
+    if(class_available("opsigeneric")){
+      $classes[] = "opsi";
+    }
+
+    MultiSelectWindow::MultiSelectWindow($config, "System", $classes);
 
     $this->parent       = $parent;
     $this->ui           = get_userinfo();