diff --git a/cod_events/plugins/content_types/cod_events_pane.inc b/cod_events/plugins/content_types/cod_events_pane.inc
index d322219..d3e0c69 100644
--- a/cod_events/plugins/content_types/cod_events_pane.inc
+++ b/cod_events/plugins/content_types/cod_events_pane.inc
@@ -23,6 +23,7 @@ function cod_events_pane_content_type_render($subtype, $conf, $context = NULL) {
   // could go here.
   // that private js function is so bad that fixing it will be the
   // basis of the next tutorial
+  $block = new stdClass();
   $block->title = t('Room/Timeslot Scheduler');
 
   if($node = node_load(array_shift($context))) {
@@ -374,4 +375,4 @@ function cod_events_get_collection_entity($room_nid, $time_nid, $event_id) {
   $entity_id = db_query($sql, array(':nid' => $room_nid, ':time_nid' => $time_nid, ':event_id' => $event_id))->fetchField();
 
   return $entity_id;
-}
\ No newline at end of file
+}
