From 0ec174d59cf0d208bdbb41250f0e66c60481470e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 14 Feb 2006 19:14:23 +0000 Subject: - Patch #47329 by merlinofchaos: fixed blogapi module problem. --- modules/blogapi/blogapi.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/blogapi') 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)) { -- cgit v1.2.3