From: hickert Date: Tue, 30 Aug 2005 12:35:33 +0000 (+0000) Subject: some fixes X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ba3eb3c8dbadcc1025c37aa7753afeb5a37779af;p=gosa.git some fixes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1266 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index 211cec67f..18a8e1b9b 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -349,17 +349,16 @@ class printgeneric extends plugin { $dn= $this->dn; plugin::save(); + $ldap= $this->config->get_ldap_link(); if((in_array("gotoTerminal",$this->attrs['objectClass']))){ $this->dn= preg_replace("/ou=terminal/","ou=printer",$this->dn); } - + if((in_array("gotoWorkstation",$this->attrs['objectClass']))){ $this->dn= preg_replace("/ou=workstation/","ou=printer",$this->dn); } - $ldap= $this->config->get_ldap_link(); - /* We are currently editing a Terminal, so we want to save a seperate printer which cn is the terminla cn */ if($this->is_terminal){ @@ -454,8 +453,6 @@ class printgeneric extends plugin } return($a_return); } - - }