Changeset 16380
- Timestamp:
- 2007/10/11 16:57:39 (17 years ago)
- Location:
- branches/feature-module-update/data/class
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/class/SC_Customer.php
r16364 r16380 171 171 function setLogin($email) { 172 172 // 本登録された会員のみ 173 $sql = "SELECT * FROM dtb_customer WHERE email ILIKE? AND del_flg = 0 AND status = 2";173 $sql = "SELECT * FROM dtb_customer WHERE email = ? AND del_flg = 0 AND status = 2"; 174 174 $result = $this->conn->getAll($sql, array($email)); 175 175 $data = isset($result[0]) ? $result[0] : ""; -
branches/feature-module-update/data/class/pages/admin/customer/LC_Page_Admin_Customer_Edit.php
r16183 r16380 292 292 //現会員の判定 → 現会員もしくは仮登録中は、メアド一意が前提になってるので同じメアドで登録不可 293 293 if (strlen($array["email"]) > 0) { 294 $sql = "SELECT customer_id FROM dtb_customer WHERE email ILIKE ? escape '#' AND (status = 1 OR status = 2) AND del_flg = 0 AND customer_id <> ?"; 294 $array['email'] = strtolower($array['email']); 295 $sql = "SELECT customer_id FROM dtb_customer WHERE email = ? escape '#' AND (status = 1 OR status = 2) AND del_flg = 0 AND customer_id <> ?"; 295 296 $checkMail = ereg_replace( "_", "#_", $array["email"]); 296 297 $result = $this->objConn->getAll($sql, array($checkMail, $array["customer_id"])); … … 303 304 //現会員の判定 → 現会員もしくは仮登録中は、メアド一意が前提になってるので同じメアドで登録不可 304 305 if (strlen($array["email_mobile"]) > 0) { 305 $sql = "SELECT customer_id FROM dtb_customer WHERE email_mobile ILIKE ? escape '#' AND (status = 1 OR status = 2) AND del_flg = 0 AND customer_id <> ?"; 306 $array['email_mobile'] = strtolower($array['email_mobile']); 307 $sql = "SELECT customer_id FROM dtb_customer WHERE email_mobile = ? escape '#' AND (status = 1 OR status = 2) AND del_flg = 0 AND customer_id <> ?"; 306 308 $checkMail = ereg_replace( "_", "#_", $array["email_mobile"]); 307 309 $result = $this->objConn->getAll($sql, array($checkMail, $array["customer_id"])); -
branches/feature-module-update/data/class/pages/entry/LC_Page_Entry.php
r16322 r16380 787 787 //現会員の判定 → 現会員もしくは仮登録中は、メアド一意が前提になってるので同じメアドで登録不可 788 788 if (strlen($array["email"]) > 0) { 789 $array['email'] = strtolower($array['email']); 789 790 $objQuery = new SC_Query(); 790 $arrRet = $objQuery->select("email, update_date, del_flg", "dtb_customer","email ILIKE ? OR email_mobile ILIKE? ORDER BY del_flg", array($array["email"], $array["email"]));791 $arrRet = $objQuery->select("email, update_date, del_flg", "dtb_customer","email = ? OR email_mobile = ? ORDER BY del_flg", array($array["email"], $array["email"])); 791 792 792 793 if(count($arrRet) > 0) {
Note: See TracChangeset
for help on using the changeset viewer.