From 3d492188710e194f97249f6b175a8890186d606a Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 23 Nov 2010 08:47:50 +0000 Subject: [PATCH] Updated ARP dependencies! If ArpNewDevice wasn t avaiable, some plugins were broken. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20332 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/admin/systems/class_systemManagement.inc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index 7ffefce5a..f3eb69cad 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -1382,11 +1382,21 @@ class systemManagement extends management $tabs['FAKE_OC_ArpNewDevice'] = &$tabs['FAKE_OC_NewDevice']; + + // Remove those types, we cannot handle at the moment due to lack of + // installed GOsa-plugins. + foreach($tabs as $name => $tab){ + + if(!class_available($tab['plugClass'])) { + unset($tabs[$name]); + } + } + return($tabs); } - static function filterSystemDescription($row,$dn,$pid,$state,$description=array()) + static function filterSystemDescription($row,$dn,$pid,$state = '',$description=array()) { $dn= LDAP::fix(func_get_arg(1)); $desc = isset($description[0])?set_post($description[0]):""; -- 2.30.2