Index: gmap_blocks.content.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/gmap_blocks/gmap_blocks.content.inc,v
retrieving revision 1.5
diff -u -r1.5 gmap_blocks.content.inc
--- gmap_blocks.content.inc	21 Aug 2009 06:59:34 -0000	1.5
+++ gmap_blocks.content.inc	21 Aug 2009 08:09:30 -0000
@@ -42,7 +42,7 @@
     $block['locations'][$lid]['marker'] = (bool) $location['marker'];
 
     if ($location['directions']) {
-      $block['locations'][$lid]['info'] .= drupal_get_form('gmap_blocks_directions_form', $delta, $location);
+      $directions_form = drupal_get_form('gmap_blocks_directions_form', $delta, $location);
       drupal_add_css("$path/gmap_blocks.css");
 
       // Store the language so the google maps directions window is opened in the users language
@@ -60,6 +60,7 @@
     }
 
     $info = check_markup($block['locations'][$lid]['info'], $block['locations'][$lid]['format'], FALSE);
+    $info .= $directions_form;
     if (!empty($info)) {
       $block['locations'][$lid]['info'] = "<div id=\"gmap-blocks-info-window-$delta-$lid\">$info</div>\n";
     }
