diff --git a/libs/ftp.class.php b/libs/ftp.class.php index 21ff636d1..d49a2efbb 100644 --- a/libs/ftp.class.php +++ b/libs/ftp.class.php @@ -257,6 +257,7 @@ } $this->ftp_debug("Connected to remote host\n"); + $list = array(); while (!feof($sock_data)) { $list[] = preg_replace("@[\r\n]@", "", fgets($sock_data, 512)); }