2
0
forked from Wavyzz/dolibarr

scrutinizer in core/lib/ftp.lib.php: $localpath never defiened for ftp_get, added it and modify consequently file where the function is called

This commit is contained in:
Faustin
2022-09-10 15:49:54 +02:00
parent 1c561b75f0
commit b66b71817c
2 changed files with 4 additions and 3 deletions

View File

@@ -193,11 +193,12 @@ function dol_ftp_delete($connect_id, $file, $newsection)
* Download a FTP file
*
* @param resource $connect_id Connection handler
* @param string $file File
* @param string $localfile The local file path
* @param string $file The remote file path
* @param string $newsection $newsection
* @return result
*/
function dol_ftp_get($connect_id, $file, $newsection)
function dol_ftp_get($connect_id, $localfile, $file, $newsection)
{
global $conf;

View File

@@ -317,7 +317,7 @@ if ($action == 'download') {
$newsection = $section;
$result = dol_ftp_get($connect_id, $file, $newsection);
$result = dol_ftp_get($connect_id, $localfile, $file, $newsection);
if ($result) {