Closed (fixed)
Project:
Private nodes
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Aug 2007 at 13:00 UTC
Updated:
27 Aug 2007 at 11:47 UTC
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
Comment #1
ben_scott commentedSorry about that - I've added the function check and committed to CVS.
Cheers, b3n
Comment #2
ben_scott commentedSetting to fixed as this should be sorted now (but please reopen if there's any more probs).
Cheers, b3n
Comment #3
finex commentedThanks :-)
Comment #4
(not verified) commented