]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/commands/web/class_WebLoginAreaCommand.php
ToDo tags now all lower-case
[shipsimu.git] / inc / classes / main / commands / web / class_WebLoginAreaCommand.php
index 1143d22136a2772fa8ddb6429d850e95e4abe252..c6bb77250afd7e5c77430ebe8767a5e8614e8bd7 100644 (file)
@@ -72,7 +72,7 @@ class WebLoginAreaCommand extends BaseCommand implements Commandable {
         * @return      void
         */
        protected function prepareCommand () {
-               /* @TODO Add some stuff here: Some personal data, app/game related data */
+               /* @todo Add some stuff here: Some personal data, app/game related data */
        }
 
        /**
@@ -86,8 +86,11 @@ class WebLoginAreaCommand extends BaseCommand implements Commandable {
                // Get the action instance from registry
                $actionInstance = Registry::getRegistry()->getInstance('action');
 
-               // Execute the action (shall not output anything, see below why)
-               $actionInstance->execute($requestInstance, $responseInstance);
+               // Do we have an action here?
+               if ($actionInstance instanceof PerformableAction) {
+                       // Execute the action (shall not output anything, see below why)
+                       $actionInstance->execute($requestInstance, $responseInstance);
+               } // END - if
 
                // Get the application instance
                $appInstance = $this->getResolverInstance()->getApplicationInstance();