MEME
This commit is contained in:
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']);
|
||||
|
Loading…
Reference in New Issue
Block a user