From: toyomoyo Date: Mon, 1 May 2006 05:33:47 +0000 (+0000) Subject: fix for 5385 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b13ee30ead09f0089864983ffa0781ab977aeed5;p=moodle.git fix for 5385 --- 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; } }