$pass_st = "Old password incorrect"; } } else { if ($user->setPassword($passwd1, $passwd2) == FALSE) { $pass_st = "Old password incorrect"; } } } } else { $pass_st = "Please enter new password"; } } } // Email prefs.. if ($pemail != $pemail_pref) { 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)) {