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