aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-12-02 18:37:22 -0800
committerredmatrix <redmatrix@redmatrix.me>2015-12-02 18:37:22 -0800
commit75058e54b8dc9625ac009781388789cff713e456 (patch)
treee5872d099ddc08263b6758c761ca80eb5978e533
parented5405d4f73983c3468d545ec2a9b9e5f1ae4d28 (diff)
downloadvolse-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.php4
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);
}