From: hickert Date: Mon, 4 Sep 2006 07:57:00 +0000 (+0000) Subject: Only display error message if necessary X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4b78ce8736862021ecf6edfd3b811931a0b9b0c1;p=gosa.git Only display error message if necessary git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4575 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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);