summaryrefslogtreecommitdiffstats
path: root/search/ajax/search.php
diff options
context:
space:
mode:
Diffstat (limited to 'search/ajax/search.php')
-rw-r--r--search/ajax/search.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/search/ajax/search.php b/search/ajax/search.php
index 5bd810aacfd..2bafe65302b 100644
--- a/search/ajax/search.php
+++ b/search/ajax/search.php
@@ -22,7 +22,8 @@
*/
// Check if we are a user
-\OC_JSON::checkLoggedIn();
+\OCP\JSON::checkLoggedIn();
+\OCP\JSON::callCheck();
\OC::$server->getSession()->close();
if (isset($_GET['query'])) {