fixing return of Folder::read when path is null

This commit is contained in:
gwoo 2009-08-02 17:22:57 -07:00
parent d0c7397d5d
commit 2ae5d45180

View file

@ -161,11 +161,11 @@ class Folder extends Object {
* @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);
}