]> git.mxchange.org Git - shipsimu.git/commitdiff
Filter fixed, message output rewritten to not die
authorRoland Häder <roland@mxchange.org>
Fri, 6 Jun 2008 19:41:38 +0000 (19:41 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 6 Jun 2008 19:41:38 +0000 (19:41 +0000)
application/ship-simu/class_ApplicationHelper.php
inc/classes/main/filter/checkboxes/class_RulesAcceptedFilter.php

index 6a94ebad143e1dacfa49d7943a7f1039cee40ed8..abe7536647c7cfdd4949261f724c2e09b51bf6de 100644 (file)
@@ -218,7 +218,7 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica
        public function handleFatalMessages (array $messageList) {
                // Walk through all messages
                foreach ($messageList as $message) {
-                       die("MSG:".$message);
+                       print("MSG:".$message."<br />\n");
                }
        }
 }
index 5d48b9e573a42babb6a5076e33313edd73c5afec..e3434890b7a17e2672459189b3d68cead0180346 100644 (file)
@@ -73,15 +73,6 @@ class RulesAcceptedFilter extends BaseFrameworkSystem implements Filterable {
                        // Not found in form so stop processing here
                        $requestInstance->requestIsValid(false);
 
-                       // Add a message to the response
-                       $responseInstance->addFatalMessage('rules_unset');
-
-                       // Abort here
-                       return false;
-               } elseif ($rules != "1") {
-                       // Not set, must be "1"!
-                       $requestInstance->requestIsValid(false);
-
                        // Add a message to the response
                        $responseInstance->addFatalMessage('rules_unchecked');