From 9d417c81abf3eb990d3e22fd381ab448663c785b Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Tue, 22 Jul 2008 13:48:16 +0000 Subject: [PATCH] different check --- include/genpage.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/genpage.inc.php b/include/genpage.inc.php index 37a6fcd0..4f97c5a6 100644 --- a/include/genpage.inc.php +++ b/include/genpage.inc.php @@ -45,7 +45,7 @@ if ($serendipity['smarty_raw_mode']) { case 'read': if (isset($serendipity['GET']['id'])) { $entry = array(serendipity_fetchEntry('id', $serendipity['GET']['id'])); - if (!is_array($entry) || count($entry) < 1) { + if (!is_array($entry) || count($entry) < 1 || !is_array($entry[0])) { unset($serendipity['GET']['id']); $entry = array(array()); $serendipity['head_title'] = htmlspecialchars($serendipity['blogTitle']);