From cd240b7d9f3c3af96347ed99647403f3edfd1924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Thu, 25 Apr 2024 23:35:43 +0200 Subject: [PATCH] MEME --- lib/upload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/upload.php b/lib/upload.php index 31de1f8..b5a606f 100644 --- a/lib/upload.php +++ b/lib/upload.php @@ -191,10 +191,10 @@ function fileExists(int $fileId, bool $onlyMine = true): bool|string $stmtfileexists->bind_param('i', $fileId); } $filePath = ""; - $id = 0; + $id = -1; $stmtfileexists->bind_result($id, $filePath); $stmtfileexists->execute(); - if ($stmtfileexists->num_rows > 0){ + if ($id != -1){ return $filePath; } else {