Permalink
Browse files

fixing return of Folder::read when path is null

  • Loading branch information...
1 parent d0c7397 commit 2ae5d45180ec21a1a0d5ad00f4ad5bb5ab7c0192 gwoo committed Aug 3, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 cake/libs/folder.php
View
@@ -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);
}

0 comments on commit 2ae5d45

Please sign in to comment.