Index: cafepress.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cafepress/cafepress.module,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -u -p -r1.4 -r1.4.2.1
--- cafepress.module	12 Oct 2007 11:39:30 -0000	1.4
+++ cafepress.module	9 Nov 2007 16:49:15 -0000	1.4.2.1
@@ -1,5 +1,5 @@
 <?php
-// $Id: cafepress.module,v 1.4 2007/10/12 11:39:30 rooey Exp $
+// $Id: cafepress.module,v 1.4.2.1 2007/11/09 16:49:15 rooey Exp $
 
 /* 
     cafepress.module
@@ -26,7 +26,7 @@
     Make the variable names and whatnot adhere better to the drupal coding standards
     Make the block title configurable.
     Add a way to upload the images right here and add text with the images
-    $Id: cafepress.module,v 1.4 2007/10/12 11:39:30 rooey Exp $
+    $Id: cafepress.module,v 1.4.2.1 2007/11/09 16:49:15 rooey Exp $
 
     ******************************************************
     Apr 24 2006 - Updated for Drupal 4.5/4.6 compatibility.
@@ -176,12 +176,14 @@ function cafepress_block($op = "list", $
       $random = mt_rand(0, sizeof($a) - 1);
       $image = $a[$random]['image'];
       $prodid = $a[$random]['id'];
+      $content = "<center>";
       if(($prodid) && ($image)) {
-        $content = "<center><a href=\"http://www.cafepress.com/cp/prod.aspx?p=".$cafepressId.".".$prodid."\" target=\"_blank\">";
+        $content = "<a href=\"http://www.cafepress.com/cp/prod.aspx?p=".$cafepressId.".".$prodid."\" target=\"_blank\">";
         $content .= "<img src=\"".$imageDir."/".$image."\" border=\"0\" width=\"".$image_size."\" height=\"".$image_size."\" alt=\"Support this site by buying our stuff!\"></a><br>";
       }//end if
       $content .= "<div class=\"more-link\">".l(t("more"), "onlinestore", array("title" => t("More stuff."))) ."</a></div>";
-      if ($makeStore == "Yes" ) $content .= "<font size=\"-2\"><a href=\"http://www.cafepress.com/cp/info/storeref.aspx?refby=".$cafepressId."\" target=\"_blank\">Sell your stuff</a></font></center>";
+      if ($makeStore == "Yes" ) $content .= "<font size=\"-2\"><a href=\"http://www.cafepress.com/cp/info/storeref.aspx?refby=".$cafepressId."\" target=\"_blank\">Sell your stuff</a></font>";
+      $content .= "</center>";
       $block = array();
       $block['subject'] = "Stuff from our store";
       $block['content'] = $content;
