Skip to content

Commit

Permalink
Fix $html notice on no featured records
Browse files Browse the repository at this point in the history
  • Loading branch information
zerocrates committed Jan 27, 2023
1 parent 4efa3e9 commit 8782197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ function thanksroy_display_random_featured_records($type = null, $count = 2, $ha
'exhibit' => 'exhibit-builder/exhibits/',
'item' => 'items/'
];
$html = '';
if ($records) {
$html = '';
foreach ($records as $record) {
$html .= get_view()->partial($recordPaths[$type] . 'single.php', array($type => $record));
release_object($record);
Expand Down

0 comments on commit 8782197

Please sign in to comment.