1
0
Fork 0
forked from lino/radar-wp

Remove some PHP notices.

This commit is contained in:
ekes 2015-04-08 17:50:42 +02:00
parent a18397d3e3
commit def076a641
2 changed files with 5 additions and 1 deletions

View file

@ -326,6 +326,8 @@ add_filter('shortcode_atts_radar_events', 'radar_shortcode_parse', 10, 3);
* Format item's parsed fields array for radar shortcode's.
*/
function radar_format_item($type, $item, $shortcode, $parents = array()) {
$content = '';
foreach ($item as $field) {
// Item containing other items.
if (!empty($field['entity'])) {