Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26998
Modified Files:
serendipity_functions.inc.php
Log Message:
This is just wrong :) Now it's right :)
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.284
retrieving revision 1.285
diff -u -d -r1.284 -r1.285
--- serendipity_functions.inc.php 9 Jun 2004 11:52:19 -0000 1.284
+++ serendipity_functions.inc.php 10 Jun 2004 17:59:08 -0000 1.285
@@ -1138,16 +1138,17 @@
<div class='serendipity_entryFooter'>
<?php
echo ' ' . POSTED_BY . ' ' . htmlspecialchars($entry['username']);
- if (is_array($entry['categories'])) {
+ if (sizeof($entry['categories']) != 0) {
echo ' ' . IN . ' ';
$cats = array();
foreach ($entry['categories'] as $cat) {
$cats[] = '<a href="' . $serendipity['serendipityHTTPPath'] . ($serendipity['rewrite'] == 'none' ? $serendipity['indexFile'] . '?/' : '') . 'categories/' . $cat['categoryid'] . '_' . serendipity_makeFilename($cat['category_name']) . '">' . $cat['category_name'] . '</a>';
}
echo implode(', ', $cats);
- echo ' ' . AT . ' <a href="' . $entryLink . '">' . date('H:i', $entry['timestamp']) . '</a>'. "\n";
}
+ echo ' ' . AT . ' <a href="' . $entryLink . '">' . date('H:i', $entry['timestamp']) . '</a>'. "\n";
+
if (serendipity_db_bool($entry['allow_comments']) || !isset($entry['allow_comments']) || $entry['comments'] > 0) {
if (!isset($serendipity['GET']['id'])) {
$label = $entry['comments'] == 1 ? COMMENT : COMMENTS;
|