edge case
This commit is contained in:
parent
920ea2e1c7
commit
08af43f396
1 changed files with 2 additions and 0 deletions
|
@ -3417,6 +3417,8 @@ function posted_dates($uid,$wall) {
|
||||||
$end_month = datetime_convert('','','last day of ' . $dnow,'Y-m-d');
|
$end_month = datetime_convert('','','last day of ' . $dnow,'Y-m-d');
|
||||||
$str = day_translate(datetime_convert('','',$dnow,'F Y'));
|
$str = day_translate(datetime_convert('','',$dnow,'F Y'));
|
||||||
$ret[] = array($str,$end_month,$start_month);
|
$ret[] = array($str,$end_month,$start_month);
|
||||||
|
if($start_month < $dthen)
|
||||||
|
break;
|
||||||
$dnow = datetime_convert('','',$dnow . ' -1 month', 'Y-m-d');
|
$dnow = datetime_convert('','',$dnow . ' -1 month', 'Y-m-d');
|
||||||
}
|
}
|
||||||
return $ret;
|
return $ret;
|
||||||
|
|
Loading…
Reference in a new issue