Code

cleanup
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 26 Jun 2009 13:25:43 +0000 (13:25 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 26 Jun 2009 13:25:43 +0000 (13:25 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13806 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpPlugin.inc

index b4fc0b6c5469b3c1d3fbace8e797e75337edaf82..f0e3f8dc5c3d2eb857c571f2838ba39cfb371722 100644 (file)
@@ -23,7 +23,6 @@ class dhcpPlugin extends plugin
   /* Used attributes */
   var $cn= "";
   var $orig_cn= "";
-  var $orig_dn= "";
   var $options= null;
   var $statements= array();
 
@@ -90,7 +89,6 @@ class dhcpPlugin extends plugin
 
     /* Save CN for later reference */
     $this->orig_cn= $this->cn;
-    $this->orig_dn= $this->dn;
   }
 
   function execute()
@@ -140,13 +138,11 @@ class dhcpPlugin extends plugin
 
     /* Add cn if we're new */
     if ($this->new){
-      $this->dn= "cn=".$this->cn.",".$this->orig_dn;
+      $this->dn= "cn=".$this->cn.",".$this->dn;
     } else {
-      $this->dn= "cn=".$this->cn.preg_replace('/^cn=[^,]+/', '', $this->orig_dn);
+      $this->dn= "cn=".$this->cn.preg_replace('/^cn=[^,]+/', '', $this->dn);
     }
 
-    print_a($this);
-
     /* Assemble new entry - options */
     $this->attrs['dhcpOption']= $this->options->save();