forked from Adleraci/adlerka.top
MEME
This commit is contained in:
parent
fa5ae71cef
commit
b9003bcbd0
@ -183,7 +183,7 @@ function fileExists(int $fileId, bool $onlyMine = true): bool|string
|
||||
if (!$onlyMine && !isAdmin()) {
|
||||
$onlyMine = true;
|
||||
}
|
||||
$query = $onlyMine ? 'SELECT ID, Path FROM Files WHERE ID = ? AND UploadedBy = ?' : 'SELECT Path FROM Files WHERE ID = ?';
|
||||
$query = $onlyMine ? 'SELECT ID, Path FROM Files WHERE ID = ? AND UploadedBy = ?' : 'SELECT ID, Path FROM Files WHERE ID = ?';
|
||||
$stmtfileexists = $mysqli->prepare($query);
|
||||
if ($onlyMine) {
|
||||
$stmtfileexists->bind_param('ii', $fileId, $_SESSION['id']);
|
||||
|
Loading…
Reference in New Issue
Block a user