diff options
author | friendica <info@friendica.com> | 2012-07-10 06:28:02 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-07-10 06:28:02 -0700 |
commit | 94fabe3a2942ca93b436694f180f8eb2a72df918 (patch) | |
tree | 37333905f9d0b0c3a3d0fdf4366d4720cee9e680 /include/items.php | |
parent | 1215de575d9cda66b434f21dafdf44f986638b71 (diff) | |
download | volse-hubzilla-94fabe3a2942ca93b436694f180f8eb2a72df918.tar.gz volse-hubzilla-94fabe3a2942ca93b436694f180f8eb2a72df918.tar.bz2 volse-hubzilla-94fabe3a2942ca93b436694f180f8eb2a72df918.zip |
upstream fixes and a lot of taxonomy stuff
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php index 5ae769244..1f90a1d05 100755 --- a/include/items.php +++ b/include/items.php @@ -3613,7 +3613,9 @@ function posted_dates($uid,$wall) { $dnow = substr($dthen,0,8) . '28'; $ret = array(); - while($dnow >= $dthen) { + // Starting with the current month, get the first and last days of every + // month down to and including the month of the first post + while(substr($dnow, 0, 7) >= substr($dthen, 0, 7)) { $dstart = substr($dnow,0,8) . '01'; $dend = substr($dnow,0,8) . get_dim(intval($dnow),intval(substr($dnow,5))); $start_month = datetime_convert('','',$dstart,'Y-m-d'); |