From 60e570e4a9732e74f1e49deea51dc69ce65f92ad Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 8 Dec 2006 06:37:57 +0000 Subject: [PATCH] Remove trailing , from given people and group ou. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5346 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_config.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/class_config.inc b/include/class_config.inc index fa068e790..b72146e22 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -241,6 +241,11 @@ class config { if (!isset($this->current['GROUPS'])){ $this->current['GROUPS']= "ou=groups"; } + + /* Remove possibly added ',' from end of group and people ou */ + $this->current['GROUPS'] = preg_replace("/,*$/","",$this->current['GROUPS']); + $this->current['PEOPLE'] = preg_replace("/,*$/","",$this->current['PEOPLE']); + if (!isset($this->current['WINSTATIONS'])){ $this->current['WINSTATIONS']= "ou=winstations,ou=systems"; } -- 2.30.2