fix code where $fb_app was used, but not set.
authorDave Cohen
Thu, 16 Dec 2010 18:31:41 +0000 (18:31 +0000)
committerDave Cohen
Thu, 16 Dec 2010 18:31:41 +0000 (18:31 +0000)
fb_user.module

index 39cc684..4737071 100644 (file)
@@ -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);
       }
     }