summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/settingsaction.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/settingsaction.php b/lib/settingsaction.php
index d74e226d8..af7fcb258 100644
--- a/lib/settingsaction.php
+++ b/lib/settingsaction.php
@@ -26,8 +26,7 @@ class SettingsAction extends Action {
if (!common_logged_in()) {
common_user_error(_t('Not logged in.'));
return;
- }
- if ($this->arg('METHOD') == 'POST') {
+ } else if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$this->handle_post();
} else {
$this->show_form();