Code

Updated ARP dependencies! If ArpNewDevice wasn t avaiable, some plugins were broken.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 23 Nov 2010 08:47:50 +0000 (08:47 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 23 Nov 2010 08:47:50 +0000 (08:47 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20332 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 7ffefce5adfb16ec636ad45df91b860487ecbd3d..f3eb69cad3f9b385a8e6df8389a74c1231a017a2 100644 (file)
@@ -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]):"";