Index: branches/dev/html/admin/order/mail.php
===================================================================
--- branches/dev/html/admin/order/mail.php	(revision 13856)
+++ branches/dev/html/admin/order/mail.php	(revision 13861)
@@ -98,7 +98,8 @@
 		$where = "template_id = ?";
 		$arrRet = $objQuery->select("subject, header, footer", "dtb_mailtemplate", $where, array($_POST['template_id']));
+		$mailTemp = $objQuery->count("dtb_mailtemplate", "subject AND del_flg = 0");
 		$objFormParam->setParam($arrRet[0]);
 	}
-	print_r($arrRet[0][subject]);
+	print_r($mailTemp);
 	break;
 }
