From: hickert Date: Mon, 22 Nov 2010 14:31:58 +0000 (+0000) Subject: Fixed goto dependencies X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=903564574f9cb1c6cbb661df8c2b37822e5f5739;p=gosa.git Fixed goto dependencies git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20322 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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'])){