This commit is contained in:
Bruno Rybársky 2024-04-26 01:30:17 +02:00
parent cf0d3990c7
commit f775a4d0cb

@ -250,7 +250,6 @@ function deleteFile(int $fileID) :string
$stmtDelete->bind_param('i', $fileID); $stmtDelete->bind_param('i', $fileID);
} }
$stmtDelete->execute(); $stmtDelete->execute();
$stmtDelete->fetch();
if ($file_location) { if ($file_location) {
if (unlink($file_location) && $stmtDelete->affected_rows > 0) { if (unlink($file_location) && $stmtDelete->affected_rows > 0) {
$out['Status'] = 'Success'; $out['Status'] = 'Success';