]> git.p6c8.net - jirafeau_project.git/commitdiff
[BUGFIX] fix error return
authorJerome Jutteau <jerome@jutteau.fr>
Thu, 19 Nov 2020 21:15:07 +0000 (22:15 +0100)
committerJerome Jutteau <jerome@jutteau.fr>
Thu, 19 Nov 2020 21:15:07 +0000 (22:15 +0100)
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
lib/functions.php

index 5c5fea75cd8c586da8bc38437afc2f704ea0ac81..5f430665e96cbcc5b66e823acd4ffe7c2c81e328 100644 (file)
@@ -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. */

patrick-canterino.de