From 06ad8d36272d4d08186ddfde721690ed2e00f6c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Thu, 25 Apr 2024 23:28:32 +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 4b148de..b62d84e 100644 --- a/lib/upload.php +++ b/lib/upload.php @@ -183,6 +183,7 @@ 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); if ($onlyMine) { @@ -195,7 +196,6 @@ function fileExists(int $fileId, bool $onlyMine = true): bool|string $stmtfileexists->execute(); if ($stmtfileexists->num_rows > 0){ return $filePath; - echo "whyy"; } else { return false;