summaryrefslogtreecommitdiff
path: root/inc/search.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/search.php')
-rw-r--r--inc/search.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/search.php b/inc/search.php
index b4d5f1274..af4315cde 100644
--- a/inc/search.php
+++ b/inc/search.php
@@ -201,7 +201,9 @@ function search_namespaces(&$data,$base,$file,$type,$lvl,$opts){
*/
function search_media(&$data,$base,$file,$type,$lvl,$opts){
//we do nothing with directories
- if($type == 'd') return false;
+ if($type == 'd') {
+ return ($opts['recursive']);
+ }
$info = array();
$info['id'] = pathID($file,true);