This weekend I have spent considerable time debugging a nasty little bug in another module that led me to turn on full PHP tracing of all errors, warnings and notices. With that, I learned of two issues with this module.

Around line 21, there is a reference to a switch statement based on variable $section. In the switch statement, the variable $content is set and then returned shortly thereafter. Because $section has never been defined, $content is never set either. As currently written, even if $section was set, there is a possibility for $content to remain unset.

Hence, in my version of the code, I resolved this NOTICE issue by setting both $section and $content to empty strings at the start of the function. There have no more PHP NOTICES with this small fix. Maintainers of this module might include this fix as well in the next update to the development version of this module's code. Cheers!

Comments

mrfelton’s picture

Status: Active » Fixed

This should be fixed in the latest -dev code.

Status: Fixed » Closed (fixed)

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