Test meme filtering

This commit is contained in:
Bruno Rybársky 2024-05-01 17:25:46 +02:00
parent 3e4a0ce45c
commit c7b4f1c3c3

@ -29,6 +29,7 @@ function addMeme(string $title, string $memeText, int $imageID): array
function executeAndRenderMemes(mysqli_stmt $stmt): string {
global $routerConfig;
$stmt->execute();
$stmt->store_result();
$stmt->bind_result($memeID, $title, $textContent, $createdAt, $authorID, $filePath, $imageWidth, $imageHeight, $userNickname);
$memes_out = '';
@ -168,7 +169,6 @@ function renderMemeGallery(?int $offset = null, ?int $authorId = null, ?int $mem
$stmt = $mysqli->prepare($query);
$stmt->bind_param($types, ...$params);
$stmt->store_result();
return executeAndRenderMemes($stmt);
}