Code

Fixed goto dependencies
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 22 Nov 2010 14:31:58 +0000 (14:31 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 22 Nov 2010 14:31:58 +0000 (14:31 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20322 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index f709de00a0679a9bb569c52abb3f31050aef8de0..c16558ed8755fca83d6536ce74bbebe78d90c424 100644 (file)
@@ -14,7 +14,8 @@ class filterSYSTEMS {
 
 
         foreach($entries as $key => $entry){
-            if(preg_match("/".preg_quote(get_ou("ArpNewDevice", "systemIncomingRDN"),'/')."/i", $entry['dn'])){
+            if(class_available("ArpNewDevice") &&
+                preg_match("/".preg_quote(get_ou("ArpNewDevice", "systemIncomingRDN"),'/')."/i", $entry['dn'])){
 
                 // Detect incoming types
                 if(in_array('gotoWorkstation', $entry['objectClass'])){