Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv12868
Modified Files:
serendipity_functions.inc.php
Log Message:
Minor fix to allow the showing of complete archived months
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- serendipity_functions.inc.php 28 Apr 2003 17:46:49 -0000 1.38
+++ serendipity_functions.inc.php 28 Apr 2003 21:13:40 -0000 1.39
@@ -183,7 +183,8 @@
$day = (int)substr($range, 6, 2);
$startts = mktime(0, 0, 0, $month, $day, $year);
- $endts = mktime(0, 0, 0, $month, $day+1, $year);
+ if ( $day == 0 ) $month++; else $day++;
+ $endts = mktime(0, 0, 0, $month, $day, $year);
$and = " WHERE timestamp >= $startts AND timestamp <= $endts ";
} else {
|