]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
check existence of args not booleanness
authorEvan Prodromou <evan@prodromou.name>
Wed, 18 Jun 2008 05:56:57 +0000 (01:56 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 18 Jun 2008 05:56:57 +0000 (01:56 -0400)
darcs-hash:20080618055657-84dde-269a234dd68867ca4f159031fe206e31131ef108.gz

actions/finishopenidlogin.php

index 78044feb5527a1e7db7b5673418b2aba07ed8556..5205ee90decf412241f1126f72dc51694ed2cfbd 100644 (file)
@@ -28,9 +28,9 @@ class FinishopenidloginAction extends Action {
                if (common_logged_in()) {
                        common_user_error(_t('Already logged in.'));
                } else if ($_SERVER['REQUEST_METHOD'] == 'POST') {
-                       if ($this->boolean('create')) {
+                       if ($this->arg('create')) {
                                $this->create_new_user();
-                       } else if ($this->boolean('connect')) {
+                       } else if ($this->arg('connect')) {
                                $this->connect_user();
                        } else {
                                common_debug(print_r($this->args, true), __FILE__);