From 4000840243c507d162b6d8bf079d48a938f8e2bb Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 18 Jun 2008 01:56:57 -0400 Subject: check existence of args not booleanness darcs-hash:20080618055657-84dde-269a234dd68867ca4f159031fe206e31131ef108.gz --- actions/finishopenidlogin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actions/finishopenidlogin.php') diff --git a/actions/finishopenidlogin.php b/actions/finishopenidlogin.php index 78044feb5..5205ee90d 100644 --- a/actions/finishopenidlogin.php +++ b/actions/finishopenidlogin.php @@ -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__); -- cgit v1.2.3-54-g00ecf