diff options
Diffstat (limited to 'modules/blogapi/blogapi.module')
-rw-r--r-- | modules/blogapi/blogapi.module | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module index 2e5fef9bc..8fa29326e 100644 --- a/modules/blogapi/blogapi.module +++ b/modules/blogapi/blogapi.module @@ -445,13 +445,13 @@ function blogapi_mt_set_post_categories($postid, $username, $password, $categori return blogapi_error($user); } - $nid = $postid; - $terms = array(); + $node = node_load($postid); + $node->taxonomy = array(); foreach ($categories as $category) { - $terms[] = $category['categoryId']; + $node->taxonomy[] = $category['categoryId']; } - module_invoke('taxonomy', 'node_save', $nid, $terms); - return true; + node_save($node); + return TRUE; } /** |