Code

some fixes
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 30 Aug 2005 12:35:33 +0000 (12:35 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 30 Aug 2005 12:35:33 +0000 (12:35 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1266 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_printGeneric.inc

index 211cec67fd5b8e602d20e2d1d09d497023dc7a20..18a8e1b9b3be50fc64b132bf422b44a1dac1201c 100644 (file)
@@ -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);
   }
-
-
 }