diff options
author | Andreas Gohr <andi@splitbrain.org> | 2009-06-05 13:05:19 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2009-06-05 13:05:19 +0200 |
commit | 78315408a68b4a73e680da58458f704c120dd54a (patch) | |
tree | 2ac4a252e78ae986b1a736606271d94a675342e7 /inc/search.php | |
parent | 3b787fa52acd8f58a58ece80238abdcafddf0155 (diff) | |
download | rpg-78315408a68b4a73e680da58458f704c120dd54a.tar.gz rpg-78315408a68b4a73e680da58458f704c120dd54a.tar.bz2 |
another attempt to fix recursion depth in media search
Ignore-this: 7d58d0069959747b9e20eefaabb7e1d5
darcs-hash:20090605110519-7ad00-7f5c5e8e9fb342c4bad6bae87b5e4d6333b1dffb.gz
Diffstat (limited to 'inc/search.php')
-rw-r--r-- | inc/search.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/search.php b/inc/search.php index 070a3be00..bf6d59ac6 100644 --- a/inc/search.php +++ b/inc/search.php @@ -189,7 +189,7 @@ function search_media(&$data,$base,$file,$type,$lvl,$opts){ //we do nothing with directories if($type == 'd') { if(!$opts['depth']) return true; // recurse forever - $depth = substr_count(ltrim($file,'/'),'/'); + $depth = substr_count($file,'/'); if($depth >= $opts['depth']) return false; // depth reached return true; } |