fix for 5385

This commit is contained in:
toyomoyo 2006-05-01 05:33:47 +00:00
parent 351576e4df
commit b13ee30ead

View File

@ -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;
}
}