Closed (fixed)
Project:
Media Gallery
Version:
7.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2010 at 13:22 UTC
Updated:
30 Nov 2010 at 06:40 UTC
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
Comment #1
JacobSingh commentedCommited 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 = '
// 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