This commit is contained in:
2024-04-25 23:42:07 +02:00
parent 3074bfc502
commit 2cdac31673
2 changed files with 2 additions and 4 deletions

View File

@@ -47,14 +47,13 @@ function renderMemeGallery(): string
// Bind the result variables
$stmtlist->bind_result($memeID, $title, $textContent, $createdAt, $filePath, $fileType, $userNickname);
$stmtlist->execute();
$stmtlist->fetch();
$meme_gallery_template = file_get_contents($routerConfig['template_dir'] . 'meme_gallery.html');
// Fetch the results
$memes_out = '';
while ($stmtlist->fetch()) {
if ($fileType == 'image') {
if (str_starts_with($fileType, 'image')) {
$memes_out .= renderMeme($title, $textContent, $createdAt, $filePath, $userNickname);
}
}