diff options
author | Zach Copley <zach@status.net> | 2010-02-17 20:53:16 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-02-17 20:56:18 +0000 |
commit | a80fdf3142d05bdae77874acc7413cbbd70fad3d (patch) | |
tree | 38ef55c96cd02a4171af33de52c3eb627a526dd7 /plugins/TwitterBridge/twitter.php | |
parent | 4d97f83740401ca98f4cd6d6d285dba0000d34dd (diff) |
Twitter bridge - fix for Ticket #2192
Diffstat (limited to 'plugins/TwitterBridge/twitter.php')
-rw-r--r-- | plugins/TwitterBridge/twitter.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/plugins/TwitterBridge/twitter.php b/plugins/TwitterBridge/twitter.php index 2dd815d3c..13e499d65 100644 --- a/plugins/TwitterBridge/twitter.php +++ b/plugins/TwitterBridge/twitter.php @@ -33,11 +33,15 @@ function add_twitter_user($twitter_id, $screen_name) // repoed, and things like that. $luser = Foreign_user::getForeignUser($twitter_id, TWITTER_SERVICE); - $result = $luser->delete(); - if ($result != false) { - common_log(LOG_INFO, - "Twitter bridge - removed old Twitter user: $screen_name ($twitter_id)."); + if (!empty($luser)) { + $result = $luser->delete(); + if ($result != false) { + common_log( + LOG_INFO, + "Twitter bridge - removed old Twitter user: $screen_name ($twitter_id)." + ); + } } $fuser = new Foreign_user(); |