From 0da696d733b133464c39ef8e17f1a8a842ec4163 Mon Sep 17 00:00:00 2001 From: bruno Date: Fri, 26 Apr 2024 10:34:13 +0200 Subject: [PATCH] Fix --- lib/meme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/meme.php b/lib/meme.php index 8223d53..7778af6 100644 --- a/lib/meme.php +++ b/lib/meme.php @@ -7,7 +7,7 @@ function addMeme(string $title, string $memeText, int $imageID): array { global $mysqli; $output = ["Status" => "Fail"]; - $output["Permalink"] = "/" . fileExists($imageID, false); + $output["Permalink"] = "/" . fileExists($imageID, false) || "preco neexistujes"; if (isLoggedIn() && fileExists($imageID, false) && !empty($title) && !empty($memeText) && !empty($imageID) && $imageID > 0) { $stmtMemeAdd = $mysqli->prepare('INSERT INTO Memes (AuthorID, Title, TextContent, FileID) VALUES (?, ?, ?, ?)'); $stmtMemeAdd->bind_param('issi', $_SESSION['ID'], htmlspecialchars($title), htmlspecialchars($memeText), $imageID);