Commit 94479f69 authored by Chris Cohen's avatar Chris Cohen Committed by rsvelko
Browse files

Issue #1307478 by chriscohen, rsvelko: Notice: Undefined property:...

Issue #1307478 by chriscohen, rsvelko: Notice: Undefined property: stdClass::$force_password_change in login_destination_apply_redirect()
parent 3d515862
Loading
Loading
Loading
Loading
+1 −1
Changes for login_destination.module: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -271,7 +271,7 @@ function login_destination_apply_redirect($account) {
  // not clear if this affects anything. Can't hurt. At least the wrong redirection does not happen currently. Phew!
  // Also check for force_password_change
  if ((arg(0) == 'user' && arg(1) == 'reset')
    || ($account->force_password_change && $account->uid == $user->uid)) {
    || (isset($account->force_password_change) && $account->force_password_change && $account->uid == $user->uid)) {
    return FALSE;
  }
  $mode = variable_get('ld_condition_type', LOGIN_COND_ALWAYS);