]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
FacebookBridge:
authorZach Copley <zach@status.net>
Mon, 29 Nov 2010 23:57:41 +0000 (23:57 +0000)
committerZach Copley <zach@status.net>
Mon, 29 Nov 2010 23:57:41 +0000 (23:57 +0000)
- Don't try to access Foreign_link if it doesn't exist
- Remove noisy debugging statement

plugins/FacebookBridge/lib/facebookclient.php

index 20d8aef7e21c926ab397f2f6e8184aa88685618e..d5ecd11a9c62709636e2c0e20deaf31b299ae53b 100644 (file)
@@ -58,7 +58,9 @@ class Facebookclient
             FACEBOOK_SERVICE
         );
 
-        $this->user = $this->flink->getUser();
+        if (!empty($this->flink)) {
+            $this->user = $this->flink->getUser();
+        }
     }
 
     /*
@@ -103,7 +105,6 @@ class Facebookclient
      */
     static function facebookBroadcastNotice($notice)
     {
-        common_debug('Facebook broadcast');
         $client = new Facebookclient($notice);
         return $client->sendNotice();
     }