diff --git a/lib/upload.php b/lib/upload.php index b5a606f..b0ebe91 100644 --- a/lib/upload.php +++ b/lib/upload.php @@ -194,6 +194,7 @@ function fileExists(int $fileId, bool $onlyMine = true): bool|string $id = -1; $stmtfileexists->bind_result($id, $filePath); $stmtfileexists->execute(); + $stmtfileexists->fetch(); if ($id != -1){ return $filePath; }