diff --git a/lib/upload.php b/lib/upload.php index e5a7bf0..a4aec4b 100644 --- a/lib/upload.php +++ b/lib/upload.php @@ -192,8 +192,8 @@ function fileExists(int $fileId, bool $onlyMine = true): bool|string } $filePath = ""; $id = null; - $stmtfileexists->bind_result($id, $filePath); $stmtfileexists->execute(); + $stmtfileexists->bind_result($id, $filePath); $stmtfileexists->fetch(); if ($stmtfileexists->num_rows > 0) { return $filePath;