mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
fixing return of Folder::read when path is null
This commit is contained in:
parent
d0c7397d5d
commit
2ae5d45180
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue