function news_com_update($story_id, $total_num) { $article = new NewsStory($story_id); if (!$article->updateComments($total_num)) { return false; } return true; }