Update of /cvsroot/php-blog/serendipity/plugins/serendipity_plugin_history
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11153/plugins/serendipity_plugin_history
Modified Files:
serendipity_plugin_history.php
Log Message:
Don't show the plugin at all, when there's nothing to show :)
Index: serendipity_plugin_history.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_plugin_history/serendipity_plugin_history.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- serendipity_plugin_history.php 16 Jul 2004 04:52:05 -0000 1.8
+++ serendipity_plugin_history.php 3 Aug 2004 20:55:09 -0000 1.9
@@ -183,8 +183,10 @@
$e = serendipity_fetchEntries(array(($maxts-$max_age*86400),
($mints-$min_age*86400)), $full, 15);
echo (empty($intro)) ? '' : "$intro<br />";
-
+
+ if (!is_array($e)) return false;
$e_c = @count($e);
+ if ($e_c==0) return false;
for($x=0; $x < $e_c; $x++) {
$url = serendipity_archiveURL($e[$x]['id'],
$e[$x]['title'],
|