From 9fe7eb14e92bd8b5d2e0789512f973976f51f01b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Sat, 27 Apr 2024 10:32:07 +0200 Subject: [PATCH] Test meme voting --- lib/meme.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/meme.php b/lib/meme.php index f11c1f4..40a7e53 100644 --- a/lib/meme.php +++ b/lib/meme.php @@ -63,6 +63,7 @@ function renderMemeGallery(): string // Fetch the results $memes_out = ''; $meme_template = file_get_contents($routerConfig['template_dir'] . "meme.html"); + $stmtlist->store_result(); while ($stmtlist->fetch()) { if (str_starts_with($fileType, 'image')) { $memes_out .= renderMeme($memeID, $authorID, $title, $textContent, $createdAt, $filePath, $userNickname, $meme_template);