[geeklog-cvs] geeklog-1.3/public_html stats.php,1.21,1.22
dhaun at geeklog.net
dhaun at geeklog.net
Sun Jan 19 12:22:28 EST 2003
Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory internal.geeklog.net:/tmp/cvs-serv959
Modified Files:
stats.php
Log Message:
Top Ten Commented Stories didn't count comments on stories submitted by
anonymous users (found & fixed by Laurence Whitworth).
Index: stats.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/stats.php,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** stats.php 2 Dec 2002 17:52:25 -0000 1.21
--- stats.php 19 Jan 2003 17:22:26 -0000 1.22
***************
*** 176,180 ****
// Top Ten Commented Stories
! $result = DB_query("SELECT sid,title,comments from {$_TABLES['stories']} WHERE (draft_flag = 0) AND (date <= NOW()) AND (uid > 1) AND (comments > 0) AND ({$permsql}) ORDER BY comments desc LIMIT 10");
$nrows = DB_numRows($result);
$display .= COM_startBlock($LANG10[11]);
--- 176,180 ----
// Top Ten Commented Stories
! $result = DB_query("SELECT sid,title,comments from {$_TABLES['stories']} WHERE (draft_flag = 0) AND (date <= NOW()) AND (comments > 0) AND ({$permsql}) ORDER BY comments desc LIMIT 10");
$nrows = DB_numRows($result);
$display .= COM_startBlock($LANG10[11]);
More information about the geeklog-cvs
mailing list