MEME
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user