Commit 0ec174d5 authored by Dries's avatar Dries

- Patch #47329 by merlinofchaos: fixed blogapi module problem.

parent 25eef00f
......@@ -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)) {
......
......@@ -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)) {
......
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