Update of /cvsroot/php-blog/serendipity/plugins/serendipity_plugin_remoterss
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19958
Modified Files:
serendipity_plugin_remoterss.php
Log Message:
the element may be empty, do not emit an error in this case. thanks to omid from the forums.
Index: serendipity_plugin_remoterss.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_plugin_remoterss/serendipity_plugin_remoterss.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- serendipity_plugin_remoterss.php 27 Jan 2005 13:04:42 -0000 1.14
+++ serendipity_plugin_remoterss.php 7 Feb 2005 13:55:29 -0000 1.15
@@ -421,7 +421,7 @@
$content .= '<img src="' . $bulletimg . '" border="0" alt="*" /> ';
}
$content .= $this->rss_utf8_decode($item['title']) . "</a><br />\n";
- $item['timestamp'] = strtotime(isset($item['pubdate']) ? $item['pubdate'] : $item['dc:date']);
+ $item['timestamp'] = @strtotime(isset($item['pubdate']) ? $item['pubdate'] : $item['dc:date']);
if (!($item['timestamp'] == -1) AND ($displaydate == 'true')) {
$content .= '<div class="serendipitySideBarDate">'
. htmlspecialchars(serendipity_formatTime($dateformat, $item['timestamp'], false))
|