| @@ -108,8 +108,10 @@ | ||
| 108 | 108 | // set active networks. Support doubles. |
| 109 | 109 | foreach($active_networks as $index => $network_name) |
| 110 | 110 | { |
| 111 | 111 | $network = mbSocial()->networks()->get($network_name); |
| 112 | + if (! is_object($network)) // could be removed network. | |
| 113 | + continue; | |
| 112 | 114 | if ($network->get('is_active')) |
| 113 | 115 | $selected[$index] = $network; |
| 114 | 116 | } |
| 115 | 117 | |
| @@ -124,15 +126,8 @@ | ||
| 124 | 126 | { |
| 125 | 127 | $priority = 'selected'; |
| 126 | 128 | } |
| 127 | 129 | |
| 128 | - | |
| 129 | - /* if ($priority == 'selected') | |
| 130 | - { | |
| 131 | - continue; // ignore active, since it's set earlier. | |
| 132 | - //$selected[$is_active] = $network; | |
| 133 | - | |
| 134 | - } */ | |
| 135 | 130 | if ($priority == 'unselected') |
| 136 | 131 | $unselected[] = $network; |
| 137 | 132 | if ($priority == 'readmore') |
| 138 | 133 | $readmore[] = $network; |
| @@ -270,9 +265,10 @@ | ||
| 270 | 265 | if ($display_review) |
| 271 | 266 | { |
| 272 | 267 | add_action( 'admin_notices', array( $this, 'mbsocial_review_notice')); |
| 273 | 268 | // registered in admin scripts |
| 274 | - MB()->load_library('review_notice'); | |
| 269 | + if (method_exists(MB(), 'load_library')) | |
| 270 | + MB()->load_library('review_notice'); | |
| 275 | 271 | } |
| 276 | 272 | |
| 277 | 273 | } |
| 278 | 274 | |