From b13ee30ead09f0089864983ffa0781ab977aeed5 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Mon, 1 May 2006 05:33:47 +0000 Subject: [PATCH] fix for 5385 --- blog/lib.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/blog/lib.php b/blog/lib.php index 4b76a192d1..b62c289273 100755 --- a/blog/lib.php +++ b/blog/lib.php @@ -365,6 +365,7 @@ // If we have specified an ID // Just return 1 entry + if ($postid) { if ($post = get_record('post', 'id', $postid)) { @@ -374,9 +375,11 @@ $post->firstname = $user->firstname; $post->lastname = $user->lastname; } + $retarray[] = $post; + return $retarray; - $this->filtered_entries = $post; - return $this->filtered_entries; + } else { // bad postid + return null; } } -- 2.39.5