From 01471d3e2a29268e8f1dfa3c96da53a0bb9e731c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 23 Jun 2011 12:06:46 +0200 Subject: [PATCH] return to default page on empty search --- search/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/search/index.php b/search/index.php index e6f41528ea3..b348b22387f 100644 --- a/search/index.php +++ b/search/index.php @@ -38,6 +38,9 @@ OC_UTIL::addStyle( 'search', 'search' ); $query=(isset($_POST['query']))?$_POST['query']:''; if($query){ $results=OC_SEARCH::search($query); +}else{ + header("Location: ".$WEBROOT.'/'.OC_APPCONFIG::getValue("core", "defaultpage", "files/index.php")); + exit(); } $resultTypes=array(); -- 2.39.5