From 878219715893c622036e6c95235dcc4e87a87578 Mon Sep 17 00:00:00 2001 From: John Flatness Date: Fri, 27 Jan 2023 18:48:31 -0500 Subject: [PATCH] Fix $html notice on no featured records --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index cb83367..4db3057 100644 --- a/functions.php +++ b/functions.php @@ -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);