Remove debug

This commit is contained in:
Bruno Rybársky 2024-04-26 10:48:07 +02:00
parent 9ac85a1afd
commit 580880f0c5

@ -7,7 +7,6 @@ function addMeme(string $title, string $memeText, int $imageID): array
{
global $mysqli;
$output = ["Status" => "Fail"];
$output["Permalink"] = fileExists($imageID, false) ? "super" : "dokelu";
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);