]> git.mjollnir.org Git - moodle.git/commitdiff
fix for 5385
authortoyomoyo <toyomoyo>
Mon, 1 May 2006 05:33:47 +0000 (05:33 +0000)
committertoyomoyo <toyomoyo>
Mon, 1 May 2006 05:33:47 +0000 (05:33 +0000)
blog/lib.php

index 4b76a192d106dfc3d7123a3f5b7b78640323537e..b62c28927384aeec33c2435b0d5387fbdd7afea5 100755 (executable)
 
         // If we have specified an ID
         // Just return 1 entry
+
         if ($postid) {
 
             if ($post = get_record('post', 'id', $postid)) {
                     $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;
             }
         }