From 4b78ce8736862021ecf6edfd3b811931a0b9b0c1 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 4 Sep 2006 07:57:00 +0000 Subject: [PATCH] Only display error message if necessary git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4575 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/groups/class_groupApplication.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc index cbdae01d2..747078e19 100644 --- a/plugins/admin/groups/class_groupApplication.inc +++ b/plugins/admin/groups/class_groupApplication.inc @@ -950,12 +950,15 @@ class appgroup extends plugin if(isset($tmp[$this->FAIrelease])){ $base = $tmp[$this->FAIrelease]; }else{ + $old_r = $this->FAIrelease; $k = key($tmp); $r = $tmp[$k]; $this->FAIrelease = $k; $base = $r; - - print_red(sprintf(_("Can't resolve the release name '%s', setting release name to '%s'. Possibly the objects base has changed."),$this->FAIrelease,$k)); + + if(!(!$this->initially_was_account && $old_r =="/")){ + print_red(sprintf(_("Can't resolve the release name '%s', setting release name to '%s'. Possibly the objects base has changed."),$this->FAIrelease,$k)); + } } $base = preg_replace("/ou=apps,.*$/","ou=apps,".$this->curbase,$base); -- 2.30.2