diff --git a/static/php/core.php b/static/php/core.php index 952e110..8b4e6fc 100644 --- a/static/php/core.php +++ b/static/php/core.php @@ -83,9 +83,9 @@ function manageFile ($id, $blopt) { if(file_exists(FILES_ROOT.$result['filename'])){ unlink(FILES_ROOT.$result['filename']); - reportError(true, '200', 'File successfully deleted and blacklisted.'); + echo reportError(true, '200', 'File successfully deleted and blacklisted.'); }else{ - reportError(false, '200', 'File successfully blacklisted.'); + echo reportError(false, '200', 'File successfully blacklisted.'); } } else { @@ -96,9 +96,9 @@ function manageFile ($id, $blopt) { if(file_exists(FILES_ROOT.$result['filename'])){ unlink(FILES_ROOT.$result['filename']); - reportError(true, '200', 'File successfully deleted.'); + echo reportError(true, '200', 'File successfully deleted.'); }else{ - reportError(false, '400', 'File not found.'); + echo reportError(false, '400', 'File not found.'); } }