summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-17 13:15:01 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-17 13:15:01 -0400
commita654d63eb0ade36954afd1ea2026d9b11a0e96fd (patch)
treebb4cf2cad6ac0263fc56b13ce7a5dc2289ed928c /lib
parentee0056e7178e933e460fb99256f8156753587928 (diff)
fix check for POST
darcs-hash:20080517171501-84dde-b8d6a1cc106372c9127d73442b4740f2de7e7b22.gz
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();