mirror of
https://github.com/danog/tgseclib.git
synced 2024-11-30 04:39:02 +01:00
fix array_merge(): Argument #1 is not an array
This commit is contained in:
parent
d77bb6e42b
commit
a7d038830c
@ -897,6 +897,7 @@ class Net_SFTP extends Net_SSH2
|
||||
}
|
||||
if (is_array($this->_query_stat_cache($this->_realpath($dir . '/' . $value)))) {
|
||||
$temp = $this->_nlist_helper($dir . '/' . $value, true, $relativeDir . $value . '/');
|
||||
$temp = is_array($temp) ? $temp : array();
|
||||
$result = array_merge($result, $temp);
|
||||
} else {
|
||||
$result[] = $relativeDir . $value;
|
||||
|
Loading…
Reference in New Issue
Block a user