aboutsummaryrefslogtreecommitdiffstats
path: root/mod/authtest.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-10 18:20:23 -0800
committerfriendica <info@friendica.com>2014-02-10 18:20:23 -0800
commitdfcb863c70e8957ec5f1b1fd0da97838cec936df (patch)
treebb8e7379ef2e1d2a29c3f9ba48b4f2126a1da667 /mod/authtest.php
parente6185eea282a07424c615414b1d0d6a8e395759b (diff)
downloadvolse-hubzilla-dfcb863c70e8957ec5f1b1fd0da97838cec936df.tar.gz
volse-hubzilla-dfcb863c70e8957ec5f1b1fd0da97838cec936df.tar.bz2
volse-hubzilla-dfcb863c70e8957ec5f1b1fd0da97838cec936df.zip
fix ambiguous result message from authtest
Diffstat (limited to 'mod/authtest.php')
-rw-r--r--mod/authtest.php2
1 files changed, 1 insertions, 1 deletions
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 {