From 6dd6c75f2bc0e80f776f5eb9f6da969dbb8cb24c Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 26 Jun 2009 13:25:43 +0000 Subject: [PATCH] cleanup git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13806 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../dhcp/admin/systems/services/dhcp/class_dhcpPlugin.inc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpPlugin.inc b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpPlugin.inc index b4fc0b6c5..f0e3f8dc5 100644 --- a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpPlugin.inc +++ b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpPlugin.inc @@ -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(); -- 2.30.2