[geeklog-cvs] geeklog-1.3/public_html index.php,1.44,1.45
geeklog-cvs-admin at lists.geeklog.net
geeklog-cvs-admin at lists.geeklog.net
Sun Apr 13 13:14:58 EDT 2003
Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory internal.geeklog.net:/tmp/cvs-serv22022
Modified Files:
index.php
Log Message:
Fixed a bug that prevented certain right blocks to show up when there where no stories for a topic.
Index: index.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/index.php,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -d -r1.44 -r1.45
*** index.php 12 Mar 2003 19:02:01 -0000 1.44
--- index.php 13 Apr 2003 17:14:56 -0000 1.45
***************
*** 296,305 ****
$display .= COM_startBlock($LANG05[1]) . $LANG05[2];
if (!empty($topic)) {
! $result = DB_query ("SELECT topic FROM {$_TABLES['topics']} WHERE tid='$topic'");
! $A = DB_fetchArray ($result);
! if (!empty ($A['topic'])) {
! $topic = $A['topic'];
! }
! $display .= $LANG05[3];
}
$display .= COM_endBlock();
--- 296,301 ----
$display .= COM_startBlock($LANG05[1]) . $LANG05[2];
if (!empty($topic)) {
! $topicname = DB_getItem ($_TABLES['topics'], 'topic', "tid='{$topic}'");
! $display .= sprintf ($LANG05[3], $topicname);
}
$display .= COM_endBlock();
More information about the geeklog-cvs
mailing list