From 08af43f3964860f17019fdc42e378a8a0904fe74 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 12 Jun 2012 21:30:17 -0700 Subject: [PATCH] edge case --- include/items.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/items.php b/include/items.php index 8a655594ef..f2dde23a71 100755 --- a/include/items.php +++ b/include/items.php @@ -3417,6 +3417,8 @@ function posted_dates($uid,$wall) { $end_month = datetime_convert('','','last day of ' . $dnow,'Y-m-d'); $str = day_translate(datetime_convert('','',$dnow,'F Y')); $ret[] = array($str,$end_month,$start_month); + if($start_month < $dthen) + break; $dnow = datetime_convert('','',$dnow . ' -1 month', 'Y-m-d'); } return $ret; -- 2.39.5