summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3d49218)
raw | patch | inline | side by side (parent: 3d49218)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 23 Nov 2010 08:47:54 +0000 (08:47 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 23 Nov 2010 08:47:54 +0000 (08:47 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20333 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc
index c8e6c075b2f9cef6ff4da70df0d52813b52d35d3..3fc50f4fdb98777ecbd4e2eb84d2e939c6f072a6 100644 (file)
} else {
/* Set base and check if the extracted base exists */
- if(preg_match("/".preg_quote(get_ou("ArpNewDevice", "systemIncomingRDN"), '/')."/i",$this->dn)){
+ if(class_available("ArpNewDevice") &&
+ preg_match("/".preg_quote(get_ou("ArpNewDevice", "systemIncomingRDN"), '/')."/i",$this->dn)){
$this->base= preg_replace("/".preg_quote(get_ou("ArpNewDevice", "systemIncomingRDN"), '/')."/i","",dn2base($this->dn));
}else{
$this->base= preg_replace("/".preg_quote(get_ou("printgeneric", "printerRDN"), '/')."/i","",dn2base($this->dn));
}
/* Ensure to create a new object */
- if(preg_match("/".preg_quote(get_ou("ArpNewDevice", "systemIncomingRDN"), '/')."/i",$this->orig_dn)){
+ if(class_available("ArpNewDevice") &&
+ preg_match("/".preg_quote(get_ou("ArpNewDevice", "systemIncomingRDN"), '/')."/i",$this->orig_dn)){
$this->orig_dn = "new";
}