From: hickert Date: Wed, 2 Jul 2008 05:45:39 +0000 (+0000) Subject: Updated plugin "valid bases" detection, don't warn user about invalid base if the... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=20fa1b140631329a55646ba69936ddfa41d3fd0b;p=gosa.git Updated plugin "valid bases" detection, don't warn user about invalid base if the current object is the base. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11501 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_plugin.inc b/gosa-core/include/class_plugin.inc index e2d6bd6c2..3ff98ea8f 100644 --- a/gosa-core/include/class_plugin.inc +++ b/gosa-core/include/class_plugin.inc @@ -1697,6 +1697,8 @@ class plugin /* Add current base */ if(isset($this->base) && isset($this->config->idepartments[$this->base])){ $deps[$this->base] = $this->config->idepartments[$this->base]; + }elseif(strtolower($this->dn) == strtolower($this->config->current['BASE'])){ + }else{ trigger_error("Cannot return list of departments, no default base found in class ".get_class($this).". ".$this->base); }