Index: branches/dev/html/mobile/magazine/confirm.php
===================================================================
--- branches/dev/html/mobile/magazine/confirm.php	(revision 11460)
+++ branches/dev/html/mobile/magazine/confirm.php	(revision 11648)
@@ -144,5 +144,4 @@
 
 	$objQuery = new SC_Query();
-	$objQuery->insert("dtb_customer_mail", $arrRegist);
 
 	//--¡¡´û¤Ë¥á¥ë¥Þ¥¬ÅÐÏ¿¤·¤Æ¤¤¤ë¤«¤ÎÈ½Äê
@@ -165,5 +164,18 @@
 
 	$sql = "SELECT secret_key FROM dtb_customer_mail WHERE email = ?";
-	return $objConn->getOne($sql, array($email));
+	$uniqid = $objConn->getOne($sql, array($email));
+
+	if ($uniqid == '') {
+		$count = 1;
+		while ($count != 0) {
+			$uniqid = sfGetUniqRandomId("t");
+			$count = $objConn->getOne("SELECT COUNT(*) FROM dtb_customer_mail WHERE secret_key = ?", array($uniqid));
+		}
+
+		$objQuery = new SC_Query();
+		$objQuery->update("dtb_customer_mail", array('secret_key' => $uniqid), "email = '" .addslashes($email). "'");
+	}
+
+	return $uniqid;
 }
 
@@ -176,5 +188,5 @@
 
 	// NULL¤â¹ØÆÉ¤È¤ß¤Ê¤¹
-	if (count($mailResult) == 0 or ($mailResult[1] != null and $mailResult[1] <= 2 )) {
+	if (count($mailResult) == 0 or ($mailResult[1] != null and $mailResult[1] != 2 )) {
 		return false;
 	} else {
