Fixed notices in advanced_forum.module and includes.