From 4da128a4163cfb3f040b33f2e73a2cff29c8e247 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 19 Jul 2005 16:32:05 +0000 Subject: - Fixed problem with node_load() in blogapi. Reported by nysus. --- modules/blogapi/blogapi.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/blogapi/blogapi.module') diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module index e8a2009cb..1f5eabef3 100644 --- a/modules/blogapi/blogapi.module +++ b/modules/blogapi/blogapi.module @@ -330,7 +330,7 @@ function blogapi_metaweblog_get_post($postid, $username, $password) { return blogapi_error($user); } - $node = node_load('nid' => $postid); + $node = node_load($postid); return _blogapi_get_post($node, true); } @@ -469,7 +469,7 @@ function blogap_mti_publish_post($postid, $username, $password) { if (!$user->uid) { return blogapi_error($user); } - $node = node_load('nid' => $postid); + $node = node_load($postid); if (!$node) { return blogapi_error(t('Invalid post.')); } -- cgit v1.2.3