Code

Fixed parameter expansion
[gosa.git] / include / class_tabs.inc
index 4e8ee724911d61d879288965290b2f398e8bdc01..cbf0cf87c14526d116ff778f342df2f31c5ec5d4 100644 (file)
@@ -187,7 +187,7 @@ class tabs
 
     /* Setup for all plugins */
     foreach ($this->by_object as $key => $obj){
-      $sacl= get_module_permission($acl, "$key", $this->dn);
+      $sacl= get_module_permission($acl, "$key", $this->dn, false);
       $obj->acl= $sacl;
       if (is_php4()){
         $this->by_object[$key]= $obj;
@@ -229,21 +229,31 @@ 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");
 
-                       $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;
+      }
+               }else{
+      $this->by_object[$key]->pl_notify= FALSE;
+    }
        }
 
        return ($messages);