diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2013-01-27 20:33:25 +0000 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2013-01-27 20:33:25 +0000 |
commit | 5514a5a77e2d38cf763ed922b727ab305c8c8bb9 (patch) | |
tree | 378fa659aa555b16fd7f8ba6e3f4a4dbe336f78d | |
parent | 155e63c930bf2fdc260994a62baa80fe5f5ab764 (diff) | |
download | rpg-5514a5a77e2d38cf763ed922b727ab305c8c8bb9.tar.gz rpg-5514a5a77e2d38cf763ed922b727ab305c8c8bb9.tar.bz2 |
ensure parameter is passed down during recursion
-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 6590d7342..6fd7e9ae6 100644 --- a/inc/search.php +++ b/inc/search.php @@ -50,7 +50,7 @@ function search(&$data,$base,$func,$opts,$dir='',$lvl=1,$sort='natural'){ //give directories to userfunction then recurse foreach($dirs as $dir){ if (call_user_func_array($func, array(&$data,$base,$dir,'d',$lvl,$opts))){ - search($data,$base,$func,$opts,$dir,$lvl+1); + search($data,$base,$func,$opts,$dir,$lvl+1,$sort); } } //now handle the files |