From 1bd70acf9bede92ed75ddccca4e97285655bd729 Mon Sep 17 00:00:00 2001 From: ihackcode Date: Fri, 3 Jul 2020 19:02:03 -0400 Subject: [PATCH] formatting --- archive.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/archive.php b/archive.php index 3fa9922d..80b7293b 100644 --- a/archive.php +++ b/archive.php @@ -171,7 +171,7 @@ $timeoffsethours = intval($timeoffset); $timeoffsetminutes = intval(($timeoffset - $timeoffsethours) * 60); - $monthstart = mktime(0 - $timeoffsethours , 0 - $timeoffsetminutes, 0, $frommonth, 1, $fromyear); + $monthstart = mktime(0 - $timeoffsethours, 0 - $timeoffsetminutes, 0, $frommonth, 1, $fromyear); $monthend = mktime(23 - $timeoffsethours, 59 - $timeoffsetminutes, 59, $frommonth + 1, 0, $fromyear); $monthend = ($monthend > time()) ? time() : $monthend; @@ -201,9 +201,7 @@ if (is_array($storyarray) && $count > 0) { /** @var \XoopsModules\Publisher\Item $item */ - foreach ($storyarray as $item) { - $story = []; $htmltitle = ''; $story['title'] = "' . $item->getTitle() . ''; @@ -242,20 +240,14 @@ } } else { $story['comment'] = ' ' . _MD_PUBLISHER_NO_COMMENTS . ' '; - } - - - - + } $xoopsTpl->append('stories', $story); } //unset($item); - } $xoopsTpl->assign('lang_printer', _MD_PUBLISHER_PRINTERFRIENDLY); $xoopsTpl->assign('lang_sendstory', _MD_PUBLISHER_SENDSTORY); $xoopsTpl->assign('lang_storytotal', _MD_PUBLISHER_TOTAL_ITEMS . ' ' . $count); - } else { $xoopsTpl->assign('show_articles', false); }