Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'search/ajax/search.php')
-rw-r--r--search/ajax/search.php4
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';
}