From: Roland Häder Date: Fri, 6 Jun 2008 19:41:38 +0000 (+0000) Subject: Filter fixed, message output rewritten to not die X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1ebdee9c71983d15ad72a72fa8d76f9c4b4eb938;p=shipsimu.git Filter fixed, message output rewritten to not die --- 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');