diff --git a/e107_plugins/forum/forum_update.php b/e107_plugins/forum/forum_update.php index bcb0e6e66..55fa6e530 100644 --- a/e107_plugins/forum/forum_update.php +++ b/e107_plugins/forum/forum_update.php @@ -1467,7 +1467,7 @@ class forumUpgrade $thread['thread_views'] = $post['thread_views']; $thread['thread_active'] = $post['thread_active']; $thread['thread_sticky'] = $post['thread_s']; - // $thread['thread_lastuser'] = $post['thread_lastuser']; + $thread['thread_lastuser'] = $this->getLastUser($post['thread_lastuser']); $thread['thread_total_replies'] = $post['thread_total_replies']; $userInfo = $this -> getUserInfo($post['thread_user']); @@ -1491,6 +1491,23 @@ class forumUpgrade return $result; } + + private function getLastUser($string) + { + + if(empty($string)) + { + return 0; + } + + list($num,$name) = explode(".",$string,2); + + return intval($num); + + } + + + function addPost(&$post) { global $forum;