I have a several nodes with a Timetable field. For some nodes, the Timetable field is empty. I have created a view which is a global timetable of all nodes. It's working but I get a set or PHP Notice & Warning for each field having an empty Timetable field:

Notice: Undefined index: und in field_timetable_style_plugin->render() (line 231 of /var/www/html/dev/sites/all/modules/contrib/field_timetable/includes/field_timetable_style_plugin.inc).
Warning: Invalid argument supplied for foreach() in template_preprocess_field_timetable_view() (line 18 of /var/www/html/dev/sites/all/modules/contrib/field_timetable/includes/field_timetable.theme.inc).

Here is a patch to prevent that.

Comments

johnv’s picture

Issue summary: View changes
StatusFileSize
new915 bytes

Attached the same patch in better format. could not reproduce the error, though.

johnv’s picture

Status: Needs review » Reviewed & tested by the community

I could reproduce the error, and the fix solves this.