Browse files

account settings are no longer removed until the account has been rem…

…oved from social's global settings and the user's profile
  • Loading branch information...
1 parent dab59de commit af91303d090f00511ab809c96fbdef0ec7c6307a Andrew Ellis committed Jan 13, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 classes/aktt.php
View
6 classes/aktt.php
@@ -695,8 +695,10 @@ static function social_account_disconnected($service, $id) {
if ($service == 'twitter') {
$accounts = get_option('aktt_v3_accounts');
if (is_array($accounts) && count($accounts) && isset($accounts[$id])) {
- unset($accounts[$id]);
- update_option('aktt_v3_accounts', $accounts);
+ if (Social::instance()->service('twitter')->account($id) === false) {
+ unset($accounts[$id]);
+ update_option('aktt_v3_accounts', $accounts);
+ }
}
}
}

0 comments on commit af91303

Please sign in to comment.