]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/controller/form/class_WebDoFormController.php
More style convensions applied, interface updated
[shipsimu.git] / inc / classes / main / controller / form / class_WebDoFormController.php
index bbb1d9cfa7c217ca1fcde19f171631febf90d464..9ffcf78b570e251022288df199e4272948c74861 100644 (file)
@@ -75,14 +75,15 @@ class WebDoFormController extends BaseController implements Controller {
                // Execute *very* generic pre filters
                $this->executePreFilters($requestInstance, $responseInstance);
 
-               // This request was valid! :-D
-               $requestInstance->requestIsValid();
+               // Is the request still valid? Post filters shall only be executed of
+               // the request is valid
+               if ($requestInstance->isRequestValid()) {
+                       // Execute the command
+                       $commandInstance->execute($requestInstance, $responseInstance);
 
-               // Execute the command
-               $commandInstance->execute($requestInstance, $responseInstance);
-
-               // Execute *very* generic ppost filters
-               $this->executePostFilters($requestInstance, $responseInstance);
+                       // Execute *very* generic ppost filters
+                       $this->executePostFilters($requestInstance, $responseInstance);
+               }
 
                // Flush the buffer out
                $responseInstance->flushBuffer();