Changeset 15357 for branches/feature-module-update
- Timestamp:
- 2007/08/24 22:21:01 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/class/SC_Customer.php
r15177 r15357 198 198 function isLoginSuccess($dont_check_email_mobile = false) { 199 199 // ログイン時のメールアドレスとDBのメールアドレスが一致している場合 200 if(SC_Utils_Ex::sfIsInt($_SESSION['customer']['customer_id'])) { 200 if(isset($_SESSION['customer']['customer_id']) 201 && SC_Utils_Ex::sfIsInt($_SESSION['customer']['customer_id'])) { 202 201 203 $objQuery = new SC_Query(); 202 204 $email = $objQuery->get("dtb_customer", "email", "customer_id = ?", array($_SESSION['customer']['customer_id'])); … … 216 218 // パラメータの取得 217 219 function getValue($keyname) { 218 return $_SESSION['customer'][$keyname];220 return isset($_SESSION['customer'][$keyname]) ? $_SESSION['customer'][$keyname] : ""; 219 221 } 220 222 … … 231 233 // 誕生日月であるかどうかの判定 232 234 function isBirthMonth() { 233 $arrRet = split("[- :/]", $_SESSION['customer']['birth']); 234 $birth_month = intval($arrRet[1]); 235 $now_month = intval(date("m")); 236 237 if($birth_month == $now_month) { 238 return true; 235 if (isset($_SESSION['customer']['birth'])) { 236 $arrRet = split("[- :/]", $_SESSION['customer']['birth']); 237 $birth_month = intval($arrRet[1]); 238 $now_month = intval(date("m")); 239 240 if($birth_month == $now_month) { 241 return true; 242 } 239 243 } 240 244 return false;
Note: See TracChangeset
for help on using the changeset viewer.