diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index 0c06c35f..6dafc021 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -2709,7 +2709,7 @@ class SFTP extends SSH2 // normally $entries would have at least . and .. but it might not if the directories // permissions didn't allow reading if (empty($entries)) { - return false; + $entries = array(); } unset($entries['.'], $entries['..']);