From 936e75104282e0d23d9f14fb9bfecc5832122de7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Thu, 25 Apr 2024 23:29:11 +0200 Subject: [PATCH] MEME --- lib/upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/upload.php b/lib/upload.php index 9446b34..4a02e80 100644 --- a/lib/upload.php +++ b/lib/upload.php @@ -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();