diff options
Diffstat (limited to 'search/ajax/search.php')
-rw-r--r-- | search/ajax/search.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/search/ajax/search.php b/search/ajax/search.php index 9472f97e189..326724d60c4 100644 --- a/search/ajax/search.php +++ b/search/ajax/search.php @@ -26,12 +26,12 @@ require_once('../../lib/base.php'); // Check if we are a user -OC_Util::checkLoggedIn(); +OC_JSON::checkLoggedIn(); $query=(isset($_GET['query']))?$_GET['query']:''; if($query){ $result=OC_Search::search($query); - echo json_encode($result); + OC_JSON::encodedPrint($result); }else{ echo 'false'; } |