MEME
This commit is contained in:
parent
2eea8f2e88
commit
936e751042
@ -185,12 +185,12 @@ function fileExists(int $fileId, bool $onlyMine = true): bool|string
|
||||
}
|
||||
$query = $onlyMine ? 'SELECT Path FROM Files WHERE ID = ? AND UploadedBy = ?' : 'SELECT Path FROM Files WHERE ID = ?';
|
||||
$stmtfileexists = $mysqli->prepare($query);
|
||||
echo "aaddaad";
|
||||
if ($onlyMine) {
|
||||
$stmtfileexists->bind_param('ii', $fileId, $_SESSION['id']);
|
||||
} else {
|
||||
$stmtfileexists->bind_param('i', $fileId);
|
||||
}
|
||||
echo "aaddaad";
|
||||
$filePath = "";
|
||||
$stmtfileexists->bind_result($filePath);
|
||||
$stmtfileexists->execute();
|
||||
|
Loading…
Reference in New Issue
Block a user