summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dab8616)
raw | patch | inline | side by side (parent: dab8616)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 20 Jul 2007 07:28:47 +0000 (07:28 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 20 Jul 2007 07:28:47 +0000 (07:28 +0000) |
If check() returns an error for a specific pluign the tab header will show a warning symbol.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6928 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6928 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_tabs.inc | patch | blob | history |
diff --git a/include/class_tabs.inc b/include/class_tabs.inc
index 4e8ee724911d61d879288965290b2f398e8bdc01..bb76200fc612f6090862ccb6013e08d7198bdbeb 100644 (file)
--- a/include/class_tabs.inc
+++ b/include/class_tabs.inc
$this->save_object(TRUE);
$messages= array();
+ $current_set = FALSE;
+
/* Check all plugins */
foreach ($this->by_object as $key => $obj){
if ($obj->is_account || $ignore_account || $obj->ignore_account){
@DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__,
$key, "Checking");
- $messages= $obj->check();
+ $msg= $obj->check();
if (is_php4()){
$this->by_object[$key]= $obj;
}
- if (count($messages)){
- $this->current= $key;
- break;
- }
+ if (count($msg)){
+ $this->by_object[$key]->pl_notify= TRUE;
+ if(!$current_set){
+ $current_set = TRUE;
+ $this->current= $key;
+ $messages = $msg;
+ }
+ }else{
+ $this->by_object[$key]->pl_notify= FALSE;
+ }
}
}