summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fb_user.module7
1 files changed, 4 insertions, 3 deletions
diff --git a/fb_user.module b/fb_user.module
index 39cc684..4737071 100644
--- a/fb_user.module
+++ b/fb_user.module
@@ -383,9 +383,10 @@ function _fb_user_process_authorized_user() {
$mapped = FALSE;
if ($fbu && _fb_user_check_session($fbu)) {
+ $fb_app = $GLOBALS['_fb_app'];
// First check if map already exists.
- $account = fb_user_get_local_user($fbu, $GLOBALS['_fb_app']);
- $config = _fb_user_get_config($GLOBALS['_fb_app']);
+ $account = fb_user_get_local_user($fbu, $fb_app);
+ $config = _fb_user_get_config($fb_app);
if (!$account) {
if ($GLOBALS['user']->uid > 0 &&
@@ -406,7 +407,7 @@ function _fb_user_process_authorized_user() {
}
if ($mapped) {
- $account = fb_user_get_local_user($fbu, $GLOBALS['_fb_app']);
+ $account = fb_user_get_local_user($fbu, $fb_app);
}
}