More conventions than code added:
[shipsimu.git] / inc / classes / main / actions / web / class_WebLoginLogoutAction.php
index 1db8418d2bf0a9b5eb62f427bc4352667154f453..85c2112d90df53870dd854815da31209ecfbc457 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -60,7 +60,7 @@ class WebLoginLogoutAction extends BaseAction implements Commandable, Registerab
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Shall we logout or display logout page or logout immediately?
-               if (($this->getConfigInstance()->readConfig('logout_immediate') == "Y") || ($requestInstance->isRequestElementSet('logout'))) {
+               if (($this->getConfigInstance()->readConfig('logout_immediate') === "Y") || ($requestInstance->isRequestElementSet('logout'))) {
                        // Get an auth instance for checking and updating the auth cookies
                        $authInstance = ObjectFactory::createObjectByConfiguredName('auth_method_class', array($responseInstance));