Summary:
File selector php error when recurse is not set
Detailed Description:
Great module and use it alot. Love the file_selector but had a small problem
when adding it to a new site today.
This probably has something to do with CGExtensions 1.65.1 also, because I never
had this problem before. But when recurse is not set I get a white page and the
following error in the logs: "cge_dir::recursive_glob() must be of the type
integer, string given".
Traced it back to modules/CGExtensions/lib/class.cge_dir.php line 276 where I
noticed it had something to do with the int for recurse.
Maybe this can be given a default value. I fixed it for now by changing line 254
in class.ecb2_tools.php from
$fl = cge_dir::recursive_glob($dir, $filetypes, 'FILES', $excludes,
$this->options['recurse']);
to
if (isset($this->options['recurse']) && $this->options['recurse'] != ''){
$recurse = $this->options['recurse'];
}
else {
$recurse = '-1';
}
$fl = cge_dir::recursive_glob($dir, $filetypes, 'FILES', $excludes, $recurse);