From: Jerome Jutteau Date: Thu, 19 Nov 2020 21:15:07 +0000 (+0100) Subject: [BUGFIX] fix error return X-Git-Tag: 4.2.0~10 X-Git-Url: https://git.p6c8.net/jirafeau.git/commitdiff_plain/092766a37489a5e38285c256f387af2bba7c5e95 [BUGFIX] fix error return Signed-off-by: Jerome Jutteau --- diff --git a/lib/functions.php b/lib/functions.php index 5c5fea7..5f43066 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -1013,7 +1013,7 @@ function jirafeau_async_end($ref, $code, $crypt, $link_name_length, $file_hash_m $l = s2p("$hash_link"); if (!@mkdir(VAR_LINKS . $l, 0755, true) || !rename($link_tmp_name, VAR_LINKS . $l . $hash_link)) { - echo "Error"; + return 'Error'; } /* Clean async upload. */