← All changes
|
admin/section/class-convertkit-admin-section-tools.php
+2
-2
3.4.2
→
3.4.6
View file →
| @@ -268,10 +268,10 @@ | ||
| 268 | 268 | |
| 269 | 269 | // Decode. |
| 270 | 270 | $import = json_decode( $json, true ); |
| 271 | 271 | |
| 272 | - // Bail if the data isn't JSON. | |
| 273 | - if ( is_null( $import ) ) { | |
| 272 | + // Bail if the data isn't a JSON object. | |
| 273 | + if ( ! is_array( $import ) ) { | |
| 274 | 274 | $this->redirect_with_error_notice( 'import_configuration_invalid_file_type' ); |
| 275 | 275 | } |
| 276 | 276 | |
| 277 | 277 | // Bail if no settings exist. |