Fix for issue #1060 (Missing Entries in Archive Dropdown)
This commit is contained in:
parent
dd908c8415
commit
500dbecfe7
1 changed files with 3 additions and 7 deletions
|
@ -4566,13 +4566,9 @@ function posted_dates($uid,$wall) {
|
||||||
if(! $dthen)
|
if(! $dthen)
|
||||||
return array();
|
return array();
|
||||||
|
|
||||||
// If it's near the end of a long month, backup to the 28th so that in
|
// Set the start and end date to the beginning of the month
|
||||||
// consecutive loops we'll always get a whole month difference.
|
$dnow = substr($dnow,0,8).'01';
|
||||||
|
$dthen = substr($dthen,0,8).'01';
|
||||||
if(intval(substr($dnow,8)) > 28)
|
|
||||||
$dnow = substr($dnow,0,8) . '28';
|
|
||||||
if(intval(substr($dthen,8)) > 28)
|
|
||||||
$dnow = substr($dthen,0,8) . '28';
|
|
||||||
|
|
||||||
$ret = array();
|
$ret = array();
|
||||||
// Starting with the current month, get the first and last days of every
|
// Starting with the current month, get the first and last days of every
|
||||||
|
|
Loading…
Reference in a new issue