From 903564574f9cb1c6cbb661df8c2b37822e5f5739 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 22 Nov 2010 14:31:58 +0000 Subject: [PATCH] Fixed goto dependencies git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20322 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/systems/admin/systems/class_filterSYSTEMS.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/systems/admin/systems/class_filterSYSTEMS.inc b/gosa-plugins/systems/admin/systems/class_filterSYSTEMS.inc index f709de00a..c16558ed8 100644 --- a/gosa-plugins/systems/admin/systems/class_filterSYSTEMS.inc +++ b/gosa-plugins/systems/admin/systems/class_filterSYSTEMS.inc @@ -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'])){ -- 2.30.2