From: hickert Date: Wed, 6 Dec 2006 11:06:08 +0000 (+0000) Subject: Fixed order of returned bases from get_allowed_bases X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8f458663064802aafec4e2f53aa178e7cc434137;p=gosa.git Fixed order of returned bases from get_allowed_bases git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5322 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_plugin.inc b/include/class_plugin.inc index c32eca5f0..574ff7345 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -1484,13 +1484,6 @@ class plugin $new = false; } - /* Add current base */ - if(isset($this->base) && isset($this->config->idepartments[$this->base])){ - $deps[$this->base] = $this->config->idepartments[$this->base]; - }else{ - echo "No default base found. ".$this->base."
"; - } - $cat_bases = $ui->get_module_departments(preg_replace("/\/.*$/","",$category)); foreach($this->config->idepartments as $dn => $name){ @@ -1505,6 +1498,14 @@ class plugin $deps[$dn] = $name; } } + + /* Add current base */ + if(isset($this->base) && isset($this->config->idepartments[$this->base])){ + $deps[$this->base] = $this->config->idepartments[$this->base]; + }else{ + echo "No default base found. ".$this->base."
"; + } + return($deps); }