Notice: Undefined property: stdClass::$term in theme_media_gallery_teaser() (line 71 of /Applications/MAMP/htdocs/drupal-7.0-beta/sites/mori.drupal7.dev/modules/media/media_gallery/media_gallery.theme.inc).

Comments

JacobSingh’s picture

Status: Active » Fixed

Commited this:

Index: media_gallery.theme.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/media_gallery/media_gallery.theme.inc,v
retrieving revision 1.2
diff -u -p -r1.2 media_gallery.theme.inc
--- media_gallery.theme.inc 21 Oct 2010 16:26:44 -0000 1.2
+++ media_gallery.theme.inc 16 Nov 2010 06:30:59 -0000
@@ -68,7 +68,7 @@ function theme_media_gallery_teaser($var
$output = '

Only local images are allowed.' . theme('media_gallery_item', $link_vars);

// Set the variables to theme the meta data if there is a term on the node
- if ($node->term) {
+ if (isset($node->term)) {
$term = $node->term;
$meta_vars = array();
$meta_vars['location'] = $term->media_gallery_image_info_where[LANGUAGE_NONE][0]['value'];
cvs diff: Diffing images

Status: Fixed » Closed (fixed)

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