diff --git a/lib/upload.php b/lib/upload.php index b62d84e..9446b34 100644 --- a/lib/upload.php +++ b/lib/upload.php @@ -183,9 +183,9 @@ function fileExists(int $fileId, bool $onlyMine = true): bool|string if (!$onlyMine && !isAdmin()) { $onlyMine = true; } - echo "whyya"; $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 {