summaryrefslogtreecommitdiff
path: root/inc/search.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/search.php')
-rw-r--r--inc/search.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/search.php b/inc/search.php
index c620b7133..46b36f816 100644
--- a/inc/search.php
+++ b/inc/search.php
@@ -79,6 +79,8 @@ function search(&$data,$base,$func,$opts,$dir='',$lvl=1){
function search_index(&$data,$base,$file,$type,$lvl,$opts){
$return = true;
+ $item = array();
+
if($type == 'd' && !preg_match('#^'.$file.'(/|$)#','/'.$opts['ns'])){
//add but don't recurse
$return = false;
@@ -95,7 +97,8 @@ function search_index(&$data,$base,$file,$type,$lvl,$opts){
$data[]=array( 'id' => $id,
'type' => $type,
- 'level' => $lvl );
+ 'level' => $lvl,
+ 'open' => $return );
return $return;
}