diff --git a/classes/tggr-source-flickr.php b/classes/tggr-source-flickr.php
index 4847d62..45033af 100755
a
|
b
|
if ( ! class_exists( 'TGGRSourceFlickr' ) ) { |
137 | 137 | * @param string $hashtag |
138 | 138 | */ |
139 | 139 | public function import_new_items( $hashtag ) { |
| 140 | if ( empty( TGGRSettings::get_instance()->settings[ __CLASS__ ]['api_key'] ) ){ |
| 141 | return; |
| 142 | } |
140 | 143 | $media = self::get_new_media( |
141 | 144 | TGGRSettings::get_instance()->settings[ __CLASS__ ]['api_key'], |
142 | 145 | $hashtag, |
diff --git a/classes/tggr-source-google.php b/classes/tggr-source-google.php
index 883bf75..e770f60 100755
a
|
b
|
if ( ! class_exists( 'TGGRSourceGoogle' ) ) { |
135 | 135 | * @param string $hashtag |
136 | 136 | */ |
137 | 137 | public function import_new_items( $hashtag ) { |
| 138 | if ( empty( TGGRSettings::get_instance()->settings[ __CLASS__ ]['api_key'] ) ){ |
| 139 | return; |
| 140 | } |
| 141 | |
138 | 142 | $activities = self::get_new_activities( |
139 | 143 | TGGRSettings::get_instance()->settings[ __CLASS__ ]['api_key'], |
140 | 144 | $hashtag |
diff --git a/classes/tggr-source-instagram.php b/classes/tggr-source-instagram.php
index bdd6097..4d67e84 100755
a
|
b
|
if ( ! class_exists( 'TGGRSourceInstagram' ) ) { |
136 | 136 | * @param string $hashtag |
137 | 137 | */ |
138 | 138 | public function import_new_items( $hashtag ) { |
| 139 | if ( empty( TGGRSettings::get_instance()->settings[ __CLASS__ ]['client_id'] ) |
| 140 | || empty( TGGRSettings::get_instance()->settings[ __CLASS__ ]['access_token'] ) ){ |
| 141 | return; |
| 142 | } |
139 | 143 | $media = self::get_new_media( |
140 | 144 | TGGRSettings::get_instance()->settings[ __CLASS__ ]['client_id'], |
141 | 145 | $hashtag, |
diff --git a/classes/tggr-source-twitter.php b/classes/tggr-source-twitter.php
index 624222c..ca4c8ea 100755
a
|
b
|
if ( ! class_exists( 'TGGRSourceTwitter' ) ) { |
217 | 217 | * @param string $hashtag |
218 | 218 | */ |
219 | 219 | public function import_new_items( $hashtag ) { |
| 220 | |
| 221 | if ( empty( TGGRSettings::get_instance()->settings[ __CLASS__ ]['consumer_key'] ) |
| 222 | || empty( TGGRSettings::get_instance()->settings[ __CLASS__ ]['consumer_secret'] ) |
| 223 | || empty( TGGRSettings::get_instance()->settings[ __CLASS__ ]['consumer_key'] ) ){ |
| 224 | return; |
| 225 | } |
| 226 | |
220 | 227 | $tweets = self::get_new_hashtagged_tweets( |
221 | 228 | TGGRSettings::get_instance()->settings[ __CLASS__ ]['_bearer_token'], |
222 | 229 | $hashtag, |