At the moment in node_assign_owner_action() node type is retrieved by calling node_get_types('type', $node). This however results in an error since using 'type' returns an object instead of a string.
So instead of

watchdog('action', 'Changed owner of @type %title to uid %name.', array('@type' => node_get_types('type', $node), '%title' => $node->title, '%name' => $owner_name));

it should be

watchdog('action', 'Changed owner of @type %title to uid %name.', array('@type' => node_get_types('name', $node), '%title' => $node->title, '%name' => $owner_name));

Comments

roderik’s picture