diff options
Diffstat (limited to 'search/ajax/search.php')
-rw-r--r-- | search/ajax/search.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/search/ajax/search.php b/search/ajax/search.php index c65fbbc63fa..9472f97e189 100644 --- a/search/ajax/search.php +++ b/search/ajax/search.php @@ -26,10 +26,7 @@ require_once('../../lib/base.php'); // Check if we are a user -if( !OC_User::isLoggedIn()){ - header( "Location: ".OC_Helper::linkTo( '', 'index.php' )); - exit(); -} +OC_Util::checkLoggedIn(); $query=(isset($_GET['query']))?$_GET['query']:''; if($query){ @@ -39,4 +36,4 @@ if($query){ echo 'false'; } -?>
\ No newline at end of file +?> |