Changeset 16087
- Timestamp:
- 2007/09/27 15:44:53 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/class/SC_Customer.php
r16086 r16087 50 50 } 51 51 52 /*53 * XXX ILIKE で良い?54 */55 52 function getCustomerDataFromEmailPass( $pass, $email, $mobile = false ) { 56 $sql_mobile = $mobile ? ' OR email_mobile ILIKE ?' : ''; 53 // 小文字に変換 54 $email = strtolower($email); 55 $sql_mobile = $mobile ? ' OR email_mobile = ?' : ''; 57 56 $arrValues = array($email); 58 57 if ($mobile) { … … 60 59 } 61 60 // 本登録された会員のみ 62 $sql = "SELECT * FROM dtb_customer WHERE (email ILIKE?" . $sql_mobile . ") AND del_flg = 0 AND status = 2";61 $sql = "SELECT * FROM dtb_customer WHERE (email = ?" . $sql_mobile . ") AND del_flg = 0 AND status = 2"; 63 62 $result = $this->conn->getAll($sql, $arrValues); 64 63 $data = $result[0];
Note: See TracChangeset
for help on using the changeset viewer.