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
path: root/search
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2012-09-04 14:06:03 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2012-09-04 14:06:03 +0400
commitc252de56d095d452f0a0b47e236b7ce5b478e785 (patch)
treeb3fdd0568dc1609de05d586b2e7fe0d9d4ffe1a5 /search
parent409ede09756f0eb67e2fedf8c4febf08ed5ce171 (diff)
Update search/index.php
respect coding style
Diffstat (limited to 'search')
-rw-r--r--search/index.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/search/index.php b/search/index.php
index de55aec3999..958065dc406 100644
--- a/search/index.php
+++ b/search/index.php
@@ -23,7 +23,7 @@
// Init owncloud
-require_once('../lib/base.php');
+require_once '../lib/base.php';
// Check if we are a user
OC_Util::checkLoggedIn();
@@ -32,7 +32,7 @@ OC_Util::checkLoggedIn();
OC_Util::addStyle( 'search', 'search' );
$query=(isset($_POST['query']))?$_POST['query']:'';
-if($query){
+if($query) {
$results=OC_Search::search($query);
}else{
OC_Util::redirectToDefaultPage();
@@ -40,12 +40,12 @@ if($query){
$resultTypes=array();
foreach($results as $result){
- if(!isset($resultTypes[$result->type])){
+ if(!isset($resultTypes[$result->type])) {
$resultTypes[$result->type]=array();
}
$resultTypes[$result->type][]=$result;
}
$tmpl = new OC_Template( 'search', 'index', 'user' );
-$tmpl->assign('resultTypes',$resultTypes);
+$tmpl->assign('resultTypes', $resultTypes);
$tmpl->printPage();