From 500dbecfe75b75a3079a08138a61fad060f3fc6b Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Wed, 3 Sep 2014 01:43:04 +0200 Subject: [PATCH] Fix for issue #1060 (Missing Entries in Archive Dropdown) --- include/items.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/include/items.php b/include/items.php index 93bdcb4c39..f9e0203c27 100644 --- a/include/items.php +++ b/include/items.php @@ -4566,13 +4566,9 @@ function posted_dates($uid,$wall) { if(! $dthen) return array(); - // If it's near the end of a long month, backup to the 28th so that in - // consecutive loops we'll always get a whole month difference. - - if(intval(substr($dnow,8)) > 28) - $dnow = substr($dnow,0,8) . '28'; - if(intval(substr($dthen,8)) > 28) - $dnow = substr($dthen,0,8) . '28'; + // Set the start and end date to the beginning of the month + $dnow = substr($dnow,0,8).'01'; + $dthen = substr($dthen,0,8).'01'; $ret = array(); // Starting with the current month, get the first and last days of every -- 2.39.5