From 82b1dabcd14d963c37466e96ac6ef00be662479e Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 19 Aug 2008 12:22:44 +0000 Subject: [PATCH] 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 --- gosa-core/include/class_tabs.inc | 7 +++++++ 1 file changed, 7 insertions(+) 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){ -- 2.30.2