From a8717732adde24aededd10b469f678b434e59fe3 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 20 Jul 2007 08:03:00 +0000 Subject: [PATCH] Updated notify handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6929 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_tabs.inc | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/include/class_tabs.inc b/include/class_tabs.inc index e3bc989f1..3be731dcb 100644 --- a/include/class_tabs.inc +++ b/include/class_tabs.inc @@ -225,23 +225,32 @@ class tabs $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"); + @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__,$key, "Checking"); + + $msg = $obj->check(); - $messages= $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; } + }else{ + $this->by_object[$key]->pl_notify= FALSE; } } - return ($messages); } -- 2.30.2