summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-07-08 01:02:12 -0700
committerZach Copley <zach@controlyourself.ca>2009-07-08 01:02:12 -0700
commit06bf2e2413446fe30b9b4b63bccb47d47786cde2 (patch)
tree636a822243da8c8e0b59c0e3bd76a19c4ae69469 /lib
parent2ed9d2dac5c2eb0d44c1168cdd861c925f184fb6 (diff)
Get rid of the other error trying to property on a non-obj
Diffstat (limited to 'lib')
-rw-r--r--lib/facebookutil.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/facebookutil.php b/lib/facebookutil.php
index 5eb9534b1..762d17bff 100644
--- a/lib/facebookutil.php
+++ b/lib/facebookutil.php
@@ -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 " .