summaryrefslogtreecommitdiff
path: root/actions/login.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/login.php')
-rw-r--r--actions/login.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/login.php b/actions/login.php
index 13e14f5be..4795dfdbd 100644
--- a/actions/login.php
+++ b/actions/login.php
@@ -25,7 +25,7 @@ class LoginAction extends Action {
parent::handle($args);
if (common_logged_in()) {
common_user_error(_t('Already logged in.'));
- } else if ($this->arg('METHOD') == 'POST') {
+ } else if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$this->check_login();
} else {
$this->show_form();