Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv26116
Modified Files:
serendipity_functions.inc.php
Log Message:
Bugfix in archive.
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- serendipity_functions.inc.php 11 Jun 2003 18:10:31 -0000 1.61
+++ serendipity_functions.inc.php 12 Jun 2003 12:14:59 -0000 1.62
@@ -1792,10 +1792,12 @@
foreach($out as $year => $months) {
echo "<h2>$year</h2><div class='serendipity_entry'>\n";
- for($y=1; $y<count($months); $y++) {
+ for($y=1; $y<13; $y++) {
+ if ($months[$y]) {
echo "<img src='{$serendipity['serendipityHTTPPath']}pixel/bar1.png' height='10' width='".ceil($months[$y][0]*$fac)."' hspace='0' vspace='0'>";
echo "<img src='{$serendipity['serendipityHTTPPath']}pixel/blank.png' height='10' width='".($barwidth-ceil($months[$y][0]*$fac))."' hspace='0' vspace='0'> ";
echo $months[$y][1]."<br />";
+ }
}
echo "</div>";
}
|