SFTP: update conditions under which cache for lstat / . is used

This commit is contained in:
terrafrost 2015-06-26 23:34:14 -05:00
parent 26818ebb40
commit d1d415618a

View File

@ -1214,7 +1214,7 @@ class Net_SFTP extends Net_SSH2
if ($this->use_stat_cache) {
$result = $this->_query_stat_cache($filename);
if (is_array($result) && isset($result['.'])) {
if (is_array($result) && isset($result['.']) && isset($result['.']->lstat)) {
return $result['.']->lstat;
}
if (is_object($result) && isset($result->lstat)) {