I think the "if (isset($edit['map'])) {" wrapper will fix the problem.


function fb_user_user_update(&$edit, $account, $category) {
if (isset($edit['map'])) {
  if ($edit['map']) {
    _fb_user_set_map($account, $edit['map']);
  }
  else {
    // Delete account mapping, because administrator has unchecked the connect option.
    $num_deleted = db_delete('fb_user')
      ->condition('uid', $account->uid)
      ->execute();

    fb_invoke(FB_USER_OP_POST_USER_DISCONNECT, array('account' => $account), NULL, 'fb_user');
  }
}
}

Comments

SolomonGifford’s picture

Status: Active » Closed (duplicate)