1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-11-26 20:24:39 +01:00

fix array_merge(): Argument #1 is not an array

This commit is contained in:
Rubens Matrono 2019-06-13 15:16:47 +02:00 committed by terrafrost
parent d77bb6e42b
commit a7d038830c

View File

@ -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;