Closed (duplicate)
Project:
Drupal for Facebook
Version:
7.x-3.x-dev
Component:
User interface
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Nov 2011 at 19:58 UTC
Updated:
13 Feb 2012 at 05:59 UTC
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
Comment #1
SolomonGifford commentedhttp://drupal.org/node/1117214