From dfcb863c70e8957ec5f1b1fd0da97838cec936df Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 10 Feb 2014 18:20:23 -0800 Subject: fix ambiguous result message from authtest --- mod/authtest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/authtest.php') diff --git a/mod/authtest.php b/mod/authtest.php index 7747ea504..c997a5cf9 100644 --- a/mod/authtest.php +++ b/mod/authtest.php @@ -34,7 +34,7 @@ function authtest_content(&$a) { if(! $j) $o .= 'json_decode failure from remote site. ' . print_r($z['body'],true); $o .= 'Remote site responded: ' . print_r($j,true); - if(strpos($j,'Authentication Success')) + if(j['success'] && strpos($j[message'],'Authentication Success')) $auth_success = true; } else { -- cgit v1.2.3