summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 253848f)
raw | patch | inline | side by side (parent: 253848f)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 15 Oct 2008 08:41:51 +0000 (08:41 +0000) | ||
committer | hickert <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
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12703 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/systems/admin/systems/class_divListSystem.inc | patch | blob | history |
diff --git a/gosa-plugins/systems/admin/systems/class_divListSystem.inc b/gosa-plugins/systems/admin/systems/class_divListSystem.inc
index 2ce3f7f100c3ca99d7e39876f2137a300a30b747..34b7bfa574c2e7a6bbca096f069d8fd91addac5a 100644 (file)
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();