private function get_author() { if (!isset($this->author_object)) { // XXX for some reason, user_id is a string sometimes? $this->author_object = User::get_by_id($this->user_id); } return $this->author_object; }