From 7b2ac293a0e81e6cebe654bb554488151aaa9aa4 Mon Sep 17 00:00:00 2001 From: danpros Date: Tue, 2 Jan 2024 17:41:44 +0700 Subject: [PATCH] Update functions.php --- system/includes/functions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index 8df327f..fcea146 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -2556,21 +2556,21 @@ function generate_rss($posts, $data = null) $feed = new Feed(); $channel = new Channel(); $rssLength = config('rss.char'); - $data = $data; + $data = $data; - if (is_null($data)) { + if (is_null($data)) { $channel ->title(blog_title()) ->description(blog_description()) ->url(site_url()) ->appendTo($feed); - } else { + } else { $channel ->title($data->title) ->description(strip_tags($data->body)) ->url($data->url) ->appendTo($feed); - } + } foreach ($posts as $p) { if (!empty($rssLength)) {