From: hickert Date: Tue, 19 Aug 2008 12:22:44 +0000 (+0000) Subject: Added error message to class_tabs.inc X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=82b1dabcd14d963c37466e96ac6ef00be662479e;p=gosa.git Added error message to class_tabs.inc - If there are no plugin definitions given abort intialization. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12243 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_tabs.inc b/gosa-core/include/class_tabs.inc index c7666fddf..a10db017c 100644 --- a/gosa-core/include/class_tabs.inc +++ b/gosa-core/include/class_tabs.inc @@ -43,6 +43,13 @@ class tabs $this->dn= $dn; $this->config= &$config; + if(!count($data)) { + $data[] = array("CLASS" => 'plugin',"NAME" => 'Error'); + msg_dialog::display(_("Error"), + sprintf(_("No plugin definitions found to initialize '%s', please check your configuration file."),get_class($this)), + "ERROR_DIALOG"); + } + $baseobject= NULL; $this->acl_category = $acl_category; foreach ($data as &$tab){