Issue 9799: Ensure that the first post date is after the registration date

This commit is contained in:
Michael 2021-03-07 10:46:46 +00:00
parent ab9090ede1
commit 6a4540e6f6
3 changed files with 34 additions and 3 deletions

View file

@ -463,7 +463,7 @@ class Widget
$cachekey = 'Widget::postedByYear' . $uid . '-' . (int)$wall;
$dthen = DI::cache()->get($cachekey);
if (!empty($dthen)) {
if (empty($dthen)) {
$dthen = Item::firstPostDate($uid, $wall);
DI::cache()->set($cachekey, $dthen, Duration::HOUR);
}