diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-02-14 19:14:23 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-02-14 19:14:23 +0000 |
commit | 0ec174d59cf0d208bdbb41250f0e66c60481470e (patch) | |
tree | bb7f667427d5b7afad8fb9160252d7b74d30dc56 /modules/blogapi | |
parent | 25eef00f897256e2dcc7245bfe6bdee78c082034 (diff) | |
download | brdo-0ec174d59cf0d208bdbb41250f0e66c60481470e.tar.gz brdo-0ec174d59cf0d208bdbb41250f0e66c60481470e.tar.bz2 |
- Patch #47329 by merlinofchaos: fixed blogapi module problem.
Diffstat (limited to 'modules/blogapi')
-rw-r--r-- | modules/blogapi/blogapi.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module index 3498b9b99..1b75cd5e9 100644 --- a/modules/blogapi/blogapi.module +++ b/modules/blogapi/blogapi.module @@ -723,7 +723,7 @@ function _blogapi_blogid($id) { } function _blogapi_get_node_types() { - $available_types = array_keys(variable_get('blogapi_node_types', array('blog' => 1)), 1); + $available_types = array_keys(array_filter(variable_get('blogapi_node_types', array('blog' => 1)))); $types = array(); foreach (node_get_types() as $type => $name) { if (node_access('create', $type) && in_array($type, $available_types)) { |