aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-10-22 16:41:06 -0700
committerfriendica <info@friendica.com>2014-10-22 16:41:06 -0700
commitd7cb5c0436081214afefbd876a127173ebfa1b74 (patch)
treefe5a54f51f20ad1a8511c084a1782e2ee8951f47 /include
parentd5edd89dd2bcfae198bb316c4f9be212937e9fa5 (diff)
downloadvolse-hubzilla-d7cb5c0436081214afefbd876a127173ebfa1b74.tar.gz
volse-hubzilla-d7cb5c0436081214afefbd876a127173ebfa1b74.tar.bz2
volse-hubzilla-d7cb5c0436081214afefbd876a127173ebfa1b74.zip
you've gotta' be on your toes to catch this bug... though it's been here for about 2 1/2 years and even survived a rewrite. Symptoms are that the archive widget only lists one month (the month when you first posted), and only if your first post was written between the 28th and 31st of whatever month that was.
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index 75eaecb20..a0c81f5ae 100755
--- a/include/items.php
+++ b/include/items.php
@@ -4131,7 +4131,7 @@ function list_post_dates($uid,$wall) {
if(intval(substr($dnow,8)) > 28)
$dnow = substr($dnow,0,8) . '28';
if(intval(substr($dthen,8)) > 28)
- $dnow = substr($dthen,0,8) . '28';
+ $dthen = substr($dthen,0,8) . '28';
$ret = array();
// Starting with the current month, get the first and last days of every
@@ -4165,7 +4165,7 @@ function posted_dates($uid,$wall) {
if(intval(substr($dnow,8)) > 28)
$dnow = substr($dnow,0,8) . '28';
if(intval(substr($dthen,8)) > 28)
- $dnow = substr($dthen,0,8) . '28';
+ $dthen = substr($dthen,0,8) . '28';
$ret = array();
// Starting with the current month, get the first and last days of every