summaryrefslogtreecommitdiff
path: root/modules/blogapi
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-04-27 17:07:03 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-04-27 17:07:03 +0000
commit195f672075f900802787864193cea8705f0a33f3 (patch)
tree5649e588853a098846651658a7fe7122eef3b1d0 /modules/blogapi
parent23957cdfdd9df56402a06c4008cab13758c32c9b (diff)
downloadbrdo-195f672075f900802787864193cea8705f0a33f3.tar.gz
brdo-195f672075f900802787864193cea8705f0a33f3.tar.bz2
- Missing parameter for variable_get
Diffstat (limited to 'modules/blogapi')
-rw-r--r--modules/blogapi/blogapi.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module
index b75989578..d836c27fd 100644
--- a/modules/blogapi/blogapi.module
+++ b/modules/blogapi/blogapi.module
@@ -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'];