diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-12-02 18:37:22 -0800 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-12-02 18:37:22 -0800 |
commit | 75058e54b8dc9625ac009781388789cff713e456 (patch) | |
tree | e5872d099ddc08263b6758c761ca80eb5978e533 | |
parent | ed5405d4f73983c3468d545ec2a9b9e5f1ae4d28 (diff) | |
download | volse-hubzilla-75058e54b8dc9625ac009781388789cff713e456.tar.gz volse-hubzilla-75058e54b8dc9625ac009781388789cff713e456.tar.bz2 volse-hubzilla-75058e54b8dc9625ac009781388789cff713e456.zip |
provide correct error if a directory server requires a realm_token and one wasn't provided
-rw-r--r-- | mod/dirsearch.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/dirsearch.php b/mod/dirsearch.php index 548acbd08..388e5f3ac 100644 --- a/mod/dirsearch.php +++ b/mod/dirsearch.php @@ -26,8 +26,8 @@ function dirsearch_content(&$a) { $token = get_config('system','realm_token'); if($token && $access_token != $token) { - $result['message'] = t('This directory server requires an access token'); - return; + $ret['message'] = t('This directory server requires an access token'); + json_return_and_die($ret); } |