Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20375
Modified Files:
Tag: branch-smarty
serendipity_functions.inc.php
Log Message:
MFH right post amount
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.419.2.56
retrieving revision 1.419.2.57
diff -u -d -r1.419.2.56 -r1.419.2.57
--- serendipity_functions.inc.php 27 Oct 2004 14:44:28 -0000 1.419.2.56
+++ serendipity_functions.inc.php 27 Oct 2004 15:08:32 -0000 1.419.2.57
@@ -3379,7 +3379,8 @@
$entries = serendipity_db_query("SELECT count(id) FROM {$serendipity['dbPrefix']}entries
WHERE isdraft = 'false'
AND timestamp >= $s
- AND timestamp <= $e");
+ AND timestamp <= $e
+ AND timestamp <= " . time());
$entry_count = $entries[0][0];
/* A silly hack to get the maximum amount of entries per month */
|