From a2b2073aa6d373779311ff98503c0e806356b83d Mon Sep 17 00:00:00 2001 From: "sr.msilva" Date: Fri, 11 Feb 2022 23:16:53 -0300 Subject: [PATCH] Fix exists dir --- includes/ftp/ftp.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, '/');