diff --git a/lib/upload.php b/lib/upload.php index 746a1a5..d391e33 100644 --- a/lib/upload.php +++ b/lib/upload.php @@ -250,7 +250,6 @@ function deleteFile(int $fileID) :string $stmtDelete->bind_param('i', $fileID); } $stmtDelete->execute(); - $stmtDelete->fetch(); if ($file_location) { if (unlink($file_location) && $stmtDelete->affected_rows > 0) { $out['Status'] = 'Success';