This commit is contained in:
Bruno Rybársky 2024-04-25 23:23:48 +02:00
parent 3912b5b1e2
commit 826df55412

@ -184,6 +184,7 @@ function fileExists(int $fileId, bool $onlyMine = true): bool|string
$onlyMine = true;
}
$query = 'SELECT Path FROM Files WHERE ID = ?' . ($onlyMine ? ' AND UploadedBy = ?' : '');
echo $query;
$stmtfileexists = $mysqli->prepare($query);
if ($onlyMine) {
$stmtfileexists->bind_param('ii', $fileId, $_SESSION['id']);