Navigation Menu

Skip to content

Commit

Permalink
fixing return of Folder::read when path is null
Browse files Browse the repository at this point in the history
  • Loading branch information
gwoo committed Aug 3, 2009
1 parent d0c7397 commit 2ae5d45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cake/libs/folder.php
Expand Up @@ -161,11 +161,11 @@ function cd($path) {
* @access public
*/
function read($sort = true, $exceptions = false, $fullPath = false) {
if (!$this->pwd()) {
return array();
}
$dirs = $files = array();

if (!$this->pwd()) {
return array($dirs, $files);
}
if (is_array($exceptions)) {
$exceptions = array_flip($exceptions);
}
Expand Down

0 comments on commit 2ae5d45

Please sign in to comment.