Skip to content
Snippets Groups Projects
Commit 4da128a4 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Fixed problem with node_load() in blogapi. Reported by nysus.

parent 20d9cae6
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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.'));
}
......
......@@ -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.'));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment