fixes #3423, Folder::find() and undefined variable

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5831 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2007-10-21 15:39:42 +00:00
parent 717e278550
commit b2f8bf21f8

View file

@ -183,7 +183,7 @@ class Folder extends Object{
* @access public * @access public
*/ */
function find($regexp_pattern = '.*', $sort = false) { function find($regexp_pattern = '.*', $sort = false) {
$data = $this->read($sort, $exceptions); $data = $this->read($sort);
if (!is_array($data)) { if (!is_array($data)) {
return array(); return array();
@ -220,7 +220,7 @@ class Folder extends Object{
* @access private * @access private
*/ */
function _findRecursive($pattern, $sort = false) { function _findRecursive($pattern, $sort = false) {
list($dirs, $files) = $this->read($sort, $exceptions); list($dirs, $files) = $this->read($sort);
$found = array(); $found = array();
foreach ($files as $file) { foreach ($files as $file) {