Needs review
Project:
Table of Contents
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Sep 2011 at 04:10 UTC
Updated:
19 Sep 2011 at 04:10 UTC
Spotted this notice in the D7 branch. We have a panel node that is getting these notices despite having told the toc block that it should _only_ appear on nodes of type Page.
Check to see if #items has any items to render.
The attached patch checks to see if $node->content['body']['#items'][0]['format'] is not empty() and only tries to render if there's something there. This removes the notice.
The attached patch needs review.
| Comment | File | Size | Author |
|---|---|---|---|
| tableofcontents_notice.png | 20.06 KB | gold | |
| tableofcontents.module.patch | 1.02 KB | gold |