summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-02-14 19:14:23 +0000
committerDries Buytaert <dries@buytaert.net>2006-02-14 19:14:23 +0000
commit0ec174d59cf0d208bdbb41250f0e66c60481470e (patch)
treebb7f667427d5b7afad8fb9160252d7b74d30dc56 /modules
parent25eef00f897256e2dcc7245bfe6bdee78c082034 (diff)
downloadbrdo-0ec174d59cf0d208bdbb41250f0e66c60481470e.tar.gz
brdo-0ec174d59cf0d208bdbb41250f0e66c60481470e.tar.bz2
- Patch #47329 by merlinofchaos: fixed blogapi module problem.
Diffstat (limited to 'modules')
-rw-r--r--modules/blogapi.module2
-rw-r--r--modules/blogapi/blogapi.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/blogapi.module b/modules/blogapi.module
index 3498b9b99..1b75cd5e9 100644
--- a/modules/blogapi.module
+++ b/modules/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)) {
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)) {