From 20fa1b140631329a55646ba69936ddfa41d3fd0b Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 2 Jul 2008 05:45:39 +0000 Subject: [PATCH] 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 --- gosa-core/include/class_plugin.inc | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.30.2