Commit 195f6720 authored by Steven Wittens's avatar Steven Wittens
Browse files

- Missing parameter for variable_get

parent 23957cdf
......@@ -118,7 +118,7 @@ function blogapi_new_post($req_params) {
$edit = array();
$edit['type'] = _blogapi_blogid($params[0]);
// get the node type defaults
$node_type_default = variable_get('node_options_'. $edit['type']);
$node_type_default = variable_get('node_options_'. $edit['type'], array());
$edit['uid'] = $user->uid;
$edit['name'] = $user->name;
$edit['promote'] = $node_type_default['promote'];
......
......@@ -118,7 +118,7 @@ function blogapi_new_post($req_params) {
$edit = array();
$edit['type'] = _blogapi_blogid($params[0]);
// get the node type defaults
$node_type_default = variable_get('node_options_'. $edit['type']);
$node_type_default = variable_get('node_options_'. $edit['type'], array());
$edit['uid'] = $user->uid;
$edit['name'] = $user->name;
$edit['promote'] = $node_type_default['promote'];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment