diff --git a/includes/ftp/ftp.class.php b/includes/ftp/ftp.class.php index 0c7a5f3..4b0fad7 100644 --- a/includes/ftp/ftp.class.php +++ b/includes/ftp/ftp.class.php @@ -83,8 +83,9 @@ public function mkdir($ftp, $ftpdir) foreach ($dirs as $dir) { if (!$this->dirExists($ftp, $dir)) { ftp_mkdir($ftp, $dir); - ftp_chdir($ftp, $dir); } + + ftp_chdir($ftp, $dir); } ftp_chdir($ftp, '/');