From 9c7fc786e2e48b1a4e7eddadac062c18d60bc0f9 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 13 May 2006 08:37:08 +0000 Subject: [PATCH] removed triggered_messages --- lam/docs/devel/mod_accountPages.htm | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/lam/docs/devel/mod_accountPages.htm b/lam/docs/devel/mod_accountPages.htm index cc3cb440..8ee729e3 100644 --- a/lam/docs/devel/mod_accountPages.htm +++ b/lam/docs/devel/mod_accountPages.htm @@ -190,8 +190,7 @@ checks
    */
    function process_attributes($post) {
-        $this->triggered_messages = -array();
+        $errors = array();
        $this->attributes['macAddress'] = array();
        // check old MACs
@@ -216,8 +215,8 @@ $this->messages['mac'][0];
            $message[] = $post['macAddress' . $i];
            -            -$this->triggered_messages[] = array($message);
+            $errors[] = +array($message);
                    }
            @@ -245,25 +244,13 @@ $this->messages['mac'][0];
                    $message[] = $post['macAddress'];
            -        $this->triggered_messages[] = -array($message);
+        $errors[] = array($message);
            }
        }
        $this->attributes['macAddress'] = array_unique($this->attributes['macAddress']);
-        if -(sizeof($this->triggered_messages) > 0) {
-            -$this->inputCorrect = false;
-            return -$this->triggered_messages;
-        }
-        else {
-            -$this->inputCorrect = true;
-            return 0;
-        }
+        return $errors;
    }