diff options
author | Brion Vibber <brion@pobox.com> | 2010-10-08 11:28:51 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-10-08 11:28:51 -0700 |
commit | 67dc78b6218bce86f6b783c34e02775f5b8cb21f (patch) | |
tree | f199a709506c736174dc64a1578c0c09134ddd4c /plugins/TwitterBridge/twittersettings.php | |
parent | 781075d4bc74296118bbf6f64565ab3aeb0a3a86 (diff) | |
parent | 34e9549756102dccd9069fc6156f1c28839801e8 (diff) |
Merge branch 'fatals' into 0.9.x
Diffstat (limited to 'plugins/TwitterBridge/twittersettings.php')
-rw-r--r-- | plugins/TwitterBridge/twittersettings.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/TwitterBridge/twittersettings.php b/plugins/TwitterBridge/twittersettings.php index dab8ab34f..33c5eb65b 100644 --- a/plugins/TwitterBridge/twittersettings.php +++ b/plugins/TwitterBridge/twittersettings.php @@ -247,6 +247,11 @@ class TwittersettingsAction extends ConnectSettingsAction $user = common_current_user(); $flink = Foreign_link::getByUserID($user->id, TWITTER_SERVICE); + if (empty($flink)) { + $this->clientError(_m('No Twitter connection to remove.')); + return; + } + $result = $flink->safeDelete(); if (empty($result)) { |