]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Get rid of the other error trying to property on a non-obj
authorZach Copley <zach@controlyourself.ca>
Wed, 8 Jul 2009 08:02:12 +0000 (01:02 -0700)
committerZach Copley <zach@controlyourself.ca>
Wed, 8 Jul 2009 08:02:12 +0000 (01:02 -0700)
lib/facebookutil.php

index 5eb9534b1641bb6d9afcc212870d95ac840f004e..762d17bff569521e6746ce6a825e9df126b27a44 100644 (file)
@@ -51,6 +51,10 @@ function updateProfileBox($facebook, $flink, $notice) {
 
 function isFacebookBound($notice, $flink) {
 
+    if (empty($flink)) {
+        return false;
+    }
+
     // If the user does not want to broadcast to Facebook, move along
     if (!($flink->noticesync & FOREIGN_NOTICE_SEND == FOREIGN_NOTICE_SEND)) {
         common_log(LOG_INFO, "Skipping notice $notice->id " .