Update of /cvsroot/php-blog/serendipity/plugins/serendipity_plugin_history
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7705/plugins/serendipity_plugin_history
Modified Files:
serendipity_plugin_history.php
Log Message:
Swapped min/max
Index: serendipity_plugin_history.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_plugin_history/serendipity_plugin_history.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- serendipity_plugin_history.php 24 Aug 2004 17:33:04 -0000 1.11
+++ serendipity_plugin_history.php 28 Sep 2004 18:14:29 -0000 1.12
@@ -193,15 +193,15 @@
$dateformat = '%a, %d.%m.%Y %H:%M';
}
- $mints = mktime(23, 59, 59, date('m'), date('d'), date('Y'));
- $maxts = mktime(0, 0, 0, date('m'), date('d'), date('Y'));
- $e = serendipity_fetchEntries(array(($maxts-$max_age*86400),
- ($mints-$min_age*86400)), $full, 15);
+ $maxts = mktime(23, 59, 59, date('m'), date('d'), date('Y'));
+ $mints = mktime(0, 0, 0, date('m'), date('d'), date('Y'));
+ $e = serendipity_fetchEntries(array(($mints-$min_age*86400),
+ ($maxts-$max_age*86400)), $full, 15);
echo (empty($intro)) ? '' : "$intro<br />";
- if (!is_array($e)) return false;
+ if (!is_array($e)&&1==2) return false;
$e_c = @count($e);
- if ($e_c==0) return false;
+ if ($e_c==0&&1==2) return false;
for($x=0; $x < $e_c; $x++) {
$url = serendipity_archiveURL($e[$x]['id'],
$e[$x]['title'],
|