From c518863eb7e06b833a92d59547c32e3748aacb09 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 15 Oct 2008 08:41:51 +0000 Subject: [PATCH] Updated system divlist -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 --- .../systems/admin/systems/class_divListSystem.inc | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/gosa-plugins/systems/admin/systems/class_divListSystem.inc b/gosa-plugins/systems/admin/systems/class_divListSystem.inc index 2ce3f7f10..34b7bfa57 100644 --- a/gosa-plugins/systems/admin/systems/class_divListSystem.inc +++ b/gosa-plugins/systems/admin/systems/class_divListSystem.inc @@ -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(); -- 2.30.2