aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-11-07 17:54:46 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2011-11-07 17:54:46 +0100
commit0becdb01db63815bd3c12e2969cc3f1bf0132f4d (patch)
tree04e734a8ead2ac0241f59010ab6e87a77e5e39d4 /mod
parentd7d889bcd09d4e92e0ded85b6c5f94ef18cc9a75 (diff)
downloadvolse-hubzilla-0becdb01db63815bd3c12e2969cc3f1bf0132f4d.tar.gz
volse-hubzilla-0becdb01db63815bd3c12e2969cc3f1bf0132f4d.tar.bz2
volse-hubzilla-0becdb01db63815bd3c12e2969cc3f1bf0132f4d.zip
oauth: fix add new app
Diffstat (limited to 'mod')
-rw-r--r--mod/settings.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/settings.php b/mod/settings.php
index 938f6a0d5..6cc80e3a6 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -56,7 +56,7 @@ function settings_post(&$a) {
return;
}
- if(($a->argc > 2) && ($a->argv[1] === 'oauth') && ($a->argv[2] === 'edit') && x($_POST,'submit')) {
+ if(($a->argc > 2) && ($a->argv[1] === 'oauth') && ($a->argv[2] === 'edit'||($a->argv[2] === 'add')) && x($_POST,'submit')) {
$name = ((x($_POST,'name')) ? $_POST['name'] : '');
$key = ((x($_POST,'key')) ? $_POST['key'] : '');