コード例 #1
0
     if (!$user->setPref('personal_email', $pemail)) {
         $email_st = $user->getError();
     } else {
         $pemail_pref = $pemail;
     }
 }
 if ($oemail != $oemail_pref) {
     if (!$user->setPref('official_email', $oemail)) {
         $email_st .= $user->getError();
     } else {
         $oemail_pref = $oemail;
     }
 }
 // Address visibility..
 if ($curr != $curr_visib) {
     if (!$user->setAddressVisibility('PRESENT', $curr)) {
         $addr_st = $user->getError();
     } else {
         $curr_visib = $curr;
     }
 }
 if ($comp != $comp_visib) {
     if (!$user->setAddressVisibility('COMPANY', $comp)) {
         $addr_st .= $user->getError();
     } else {
         $comp_visib = $comp;
     }
 }
 if ($perm != $perm_visib) {
     if (!$user->setAddressVisibility('PERMANENT', $perm)) {
         $addr_st .= $user->getError();