Code

Updated checl for enabled arp device handling
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 22 Oct 2007 08:12:34 +0000 (08:12 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 22 Oct 2007 08:12:34 +0000 (08:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7613 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_systemManagement.inc

index 08ffae4487ceabc1b9bb563b51d4dd3dbe5b4070..331e2add838bff3370b2cd26f758c97e79edc2a7 100644 (file)
@@ -1246,8 +1246,10 @@ class systems extends plugin
 
   function get_system_type($attrs)
   {
-    #$enable_arp_device_handling = preg_match("/ArpNewDevice/i",search_config($this->config->data['TABS'], "ArpNewDevice", "CLASS"));
-    $enable_arp_device_handling = TRUE; 
+    if($this->config->search("ArpNewDevice","CLASS",array('tabs')) != ""){
+      $enable_arp_device_handling = TRUE;
+    }
     $classes = $attrs['objectClass'];
 
     $type= "";