diff options
author | friendica <info@friendica.com> | 2014-11-03 14:49:03 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-11-03 14:49:03 -0800 |
commit | a6d8c3193a6fc243f3e516118c793e5b871b8247 (patch) | |
tree | 1425c809b156a47498f4caaeac683c3b3177079e /include/items.php | |
parent | ac858f4bd4fcb9c65cbc7b19288cdad0076aa072 (diff) | |
download | volse-hubzilla-a6d8c3193a6fc243f3e516118c793e5b871b8247.tar.gz volse-hubzilla-a6d8c3193a6fc243f3e516118c793e5b871b8247.tar.bz2 volse-hubzilla-a6d8c3193a6fc243f3e516118c793e5b871b8247.zip |
various UI issues related to having an enormous number of entries in the posted_date selector including years/months that had no posts
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php index d173e1a98..325947341 100755 --- a/include/items.php +++ b/include/items.php @@ -4128,10 +4128,13 @@ function first_post_date($uid,$wall = false) { * current flat list of all representative dates. */ -function list_post_dates($uid,$wall) { +function list_post_dates($uid,$wall,$mindate) { $dnow = datetime_convert('',date_default_timezone_get(),'now','Y-m-d'); - $dthen = first_post_date($uid,$wall); + if($mindate) + $dthen = datetime_convert('',date_default_timezone_get(),$mindate); + else + $dthen = first_post_date($uid,$wall); if(! $dthen) return array(); |