beaulebens / keyring-social-importers

A collection of importers which pull your content back from social networks, and into your own WordPress install.
32 stars 17 forks source link

Resolve PHP warnings #1

Closed ethitter closed 7 years ago

ethitter commented 8 years ago

PHP Warning: array_merge(): Argument #1 is not an array in /.../wp-content/plugins/keyring-social-importers/importers/keyring-importer-instagram.php on line 135

ethitter commented 8 years ago

Updated to address one in the Foursquare importer, because PHP is fun.

PHP Warning: implode(): Invalid arguments passed in /.../wp-content/plugins/keyring-social-importers/importers/keyring-importer-foursquare.php on line 213

The is_array() check is necessary because count() is weird with non-countable things: "If the parameter is not an array or not an object with implemented Countable interface, 1 will be returned."

ethitter commented 7 years ago

Refreshed for v1.6. Nothing's broken, but the noise is rather distracting.