Skip to content
Permalink
Browse files

fixing return of Folder::read when path is null

  • Loading branch information...
gwoo
gwoo committed Aug 3, 2009
1 parent d0c7397 commit 2ae5d45180ec21a1a0d5ad00f4ad5bb5ab7c0192
Showing with 3 additions and 3 deletions.
  1. +3 −3 cake/libs/folder.php
@@ -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.
You can’t perform that action at this time.