The function private_nodes_get_node_types() check if exist the functio is_nodeprofile().
Here is the code:

function private_nodes_get_node_types() {

  $types = node_get_types();

  foreach ($types as $k => $v) {
    if (function_exists('is_nodeprofile')) {
      if (!is_nodeprofile($k)) {
        $node_types[$k] = strtolower($v->name);
      }
  }

  return $node_types;

}

If the function "is_nodeprofile" doesn't exist, $node_types is left to null.

A simple patch is to add an else branch, something like this:

    } else {
      $node_types[$k] = strtolower($v->name);
    }

Comments

ben_scott’s picture

Sorry about that - I've added the function check and committed to CVS.

Cheers, b3n

ben_scott’s picture

Status: Needs work » Fixed

Setting to fixed as this should be sorted now (but please reopen if there's any more probs).

Cheers, b3n

finex’s picture

Thanks :-)

Anonymous’s picture

Status: Fixed » Closed (fixed)