From 74c44f36f9dfc2429021796c75010c9b50f8531d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Thu, 25 Apr 2024 23:15:45 +0200 Subject: [PATCH] MEME --- lib/meme.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/meme.php b/lib/meme.php index 11145ea..76b9a59 100644 --- a/lib/meme.php +++ b/lib/meme.php @@ -11,6 +11,7 @@ function addMeme(string $title, string $memeText, int $imageID): array $stmtMemeAdd->bind_param('issi', $_SESSION['ID'], htmlspecialchars($title), htmlspecialchars($memeText), $imageID); if($stmtMemeAdd->execute() && $stmtMemeAdd->affected_rows > 0) { $output["Status"] = "Success"; + $output["Error"] = $stmtMemeAdd->error; } } return $output;