From 3d10a1c55cf76652abdb65fc92f117ea816e33ea Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 6 Oct 2006 07:01:05 +0000 Subject: [PATCH] Added much saver base detection git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4862 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/ogroups/class_ogroup.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/admin/ogroups/class_ogroup.inc b/plugins/admin/ogroups/class_ogroup.inc index 45a9b06be..2df483ab5 100644 --- a/plugins/admin/ogroups/class_ogroup.inc +++ b/plugins/admin/ogroups/class_ogroup.inc @@ -85,7 +85,7 @@ class ogroup extends plugin if ($this->dn == "new"){ $this->base= $_SESSION['CurrentMainBase']; } else { - $this->base= preg_replace ("/^[^,]+,[^,]+,/", "", $this->dn); + $this->base= preg_replace("/^[^,]+,".get_groups_ou()."/","",$str); } /* set permissions */ -- 2.30.2