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);