is 793 this line:
$dirs[] = array_merge($file, $this->dirstats($filename));
if so go up to the top of the function and set $adv=false; so it doesn't execute the 'this->' statement..
up at 755 is the function declaration
Code:
function checkout_listfiles_nr($dir, $dirs_only=false, $adv=false){
$adv=false;
$dirs = $files = array();
-- see what I did there? put the $adv=false; statement under the function declaration.
let me know if that helps.
regards,
Matt