]> git.mxchange.org Git - friendica.git/commitdiff
edge case
authorfriendica <info@friendica.com>
Wed, 13 Jun 2012 04:30:17 +0000 (21:30 -0700)
committerfriendica <info@friendica.com>
Wed, 13 Jun 2012 04:30:17 +0000 (21:30 -0700)
include/items.php

index 8a655594ef1a14a03402f51b30a51fb23b92688c..f2dde23a713ba54878b39847bbd4c0aea7628ac6 100755 (executable)
@@ -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;