Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9873
Modified Files:
serendipity_functions.inc.php
Log Message:
if some special URL was called, invalid data was produced. now catch that
case. (contact me for more information on this, if you want)
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.416
retrieving revision 1.417
diff -u -d -r1.416 -r1.417
--- serendipity_functions.inc.php 5 Sep 2004 19:32:53 -0000 1.416
+++ serendipity_functions.inc.php 6 Sep 2004 08:12:51 -0000 1.417
@@ -1141,7 +1141,7 @@
/* pre-walk the array to collect them keyed by date */
$bydate = array();
- if (!is_array($entries) || $entries[0] == false) {
+ if (!is_array($entries) || $entries[0] == false || $entries[0][0] == false) {
echo '<br />' . NO_ENTRIES_TO_PRINT . "\n";
return;
}
@@ -1333,7 +1333,7 @@
),
(isset($entry['allow_comments']) ? $entry['allow_comments'] : true),
true,
- $viewmode
+ $viewmode
);
if (!empty($serendipity['POST']['preview'])) {
|