Index: /temp/trunk/html/admin/design/upload.php
===================================================================
--- /temp/trunk/html/admin/design/upload.php	(revision 10365)
+++ /temp/trunk/html/admin/design/upload.php	(revision 10366)
@@ -99,12 +99,14 @@
 	$objErr->arrErr = $objFormParam->checkError();
 	
-	// Æ±Ì¾¤Î¥Õ¥©¥ë¥À¤¬Â¸ºß¤¹¤ë¾ì¹ç¤Ï¥¨¥é¡¼
-	if(file_exists(USER_TEMPLATE_PATH.$arrList['template_code'])) {
-		$objErr->arrErr['template_code'] = "¢¨ Æ±Ì¾¤Î¥Õ¥¡¥¤¥ë¤¬¤¹¤Ç¤ËÂ¸ºß¤·¤Þ¤¹¡£<br/>";
-	}
-	// DB¤Ë¤¹¤Ç¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤Ê¤¤¤«¥Á¥§¥Ã¥¯
-	$ret = $objQuery->get("dtb_templates", "template_code", "template_code = ?", array($arrList['template_code']));
-	if($ret != "") {
-		$objErr->arrErr['template_code'] = "¢¨ ¤¹¤Ç¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¥Æ¥ó¥×¥ì¡¼¥È¥³¡¼¥É¤Ç¤¹¡£<br/>";
+	if(count($objErr->arrErr) <= 0) {
+		// Æ±Ì¾¤Î¥Õ¥©¥ë¥À¤¬Â¸ºß¤¹¤ë¾ì¹ç¤Ï¥¨¥é¡¼
+		if(file_exists(USER_TEMPLATE_PATH.$arrList['template_code'])) {
+			$objErr->arrErr['template_code'] = "¢¨ Æ±Ì¾¤Î¥Õ¥¡¥¤¥ë¤¬¤¹¤Ç¤ËÂ¸ºß¤·¤Þ¤¹¡£<br/>";
+		}
+		// DB¤Ë¤¹¤Ç¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤Ê¤¤¤«¥Á¥§¥Ã¥¯
+		$ret = $objQuery->get("dtb_templates", "template_code", "template_code = ?", array($arrList['template_code']));
+		if($ret != "") {
+			$objErr->arrErr['template_code'] = "¢¨ ¤¹¤Ç¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¥Æ¥ó¥×¥ì¡¼¥È¥³¡¼¥É¤Ç¤¹¡£<br/>";
+		}
 	}
 	
