Index: branches/dev/html/admin/basis/preview.php
===================================================================
--- branches/dev/html/admin/basis/preview.php	(revision 13753)
+++ branches/dev/html/admin/basis/preview.php	(revision 13754)
@@ -31,17 +31,19 @@
 		$sql = "SELECT header, footer,send_type FROM dtb_mailtemplate WHERE template_id = ?";
 		$id = $_GET['id'];
-	}
-	$result = $conn->getAll($sql, array($id));
+        $result = $conn->getAll($sql, array($id));
+	
+        if ( $result ){
+                if ( $result[0]["mail_method"] == 2 ){
+                // ¥Æ¥­¥¹¥È·Á¼°¤Î»þ¤Ï¥¿¥°Ê¸»ú¤ò¥¨¥¹¥±¡¼¥×
+                    $objPage->escape_flag = 1;
+                }
+            $objPage->body = $result[0]["body"];
+        }
+    
+    }
 	
 	
-	if ( $result ){
-		if ( $result[0]["mail_method"] == 2 ){
-			// ¥Æ¥­¥¹¥È·Á¼°¤Î»þ¤Ï¥¿¥°Ê¸»ú¤ò¥¨¥¹¥±¡¼¥×
-			$objPage->escape_flag = 1;
-		}
-		$objPage->body = $result[0]["body"];
-	}
+	
 
-}
 	
 $objView->assignobj($objPage);
