Hi tolmi,

I was getting errors on line 85 (from the CVS version).

Looking at the code, the $form may not have a ['type'] entry. Also, the node type may not include the resulting type (especially if NULL).

On top of that, you do not need to gather the node_types() if the test fails. So moving those inside prevents the E_NOTICE errors and saves time on all those pages that are not nodes.

Thank you.
Alexis Wilke

Comments

AlexisWilke’s picture

Status: Needs review » Fixed

This is now checked in.

Thank you.
Alexis Wilke

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.