From 092766a37489a5e38285c256f387af2bba7c5e95 Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Thu, 19 Nov 2020 22:15:07 +0100 Subject: [PATCH 1/1] [BUGFIX] fix error return Signed-off-by: Jerome Jutteau --- lib/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- 2.34.1