From 1ebdee9c71983d15ad72a72fa8d76f9c4b4eb938 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 6 Jun 2008 19:41:38 +0000 Subject: [PATCH] Filter fixed, message output rewritten to not die --- application/ship-simu/class_ApplicationHelper.php | 2 +- .../main/filter/checkboxes/class_RulesAcceptedFilter.php | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/application/ship-simu/class_ApplicationHelper.php b/application/ship-simu/class_ApplicationHelper.php index 6a94eba..abe7536 100644 --- a/application/ship-simu/class_ApplicationHelper.php +++ b/application/ship-simu/class_ApplicationHelper.php @@ -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."
\n"); } } } diff --git a/inc/classes/main/filter/checkboxes/class_RulesAcceptedFilter.php b/inc/classes/main/filter/checkboxes/class_RulesAcceptedFilter.php index 5d48b9e..e343489 100644 --- a/inc/classes/main/filter/checkboxes/class_RulesAcceptedFilter.php +++ b/inc/classes/main/filter/checkboxes/class_RulesAcceptedFilter.php @@ -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'); -- 2.39.5