Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing return of Folder::read when path is null

  • Loading branch information...
commit 2ae5d45180ec21a1a0d5ad00f4ad5bb5ab7c0192 1 parent d0c7397
gwoo authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 cake/libs/folder.php
View
6 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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.