| @@ -1414,8 +1414,11 @@ | ||
| 1414 | 1414 | $is_offload_media_available = 'yes'; |
| 1415 | 1415 | } |
| 1416 | 1416 | $api_key = $this->settings->get( 'api_key' ); |
| 1417 | 1417 | $service_data = $this->settings->get( 'service_data' ); |
| 1418 | + if ( ! is_array( $service_data ) ) { | |
| 1419 | + $service_data = []; | |
| 1420 | + } | |
| 1418 | 1421 | $user = get_userdata( get_current_user_id() ); |
| 1419 | 1422 | $user_status = 'inactive'; |
| 1420 | 1423 | $auto_connect = get_option( Optml_Settings::OPTML_USER_EMAIL, 'no' ); |
| 1421 | 1424 | $available_apps = isset( $service_data['available_apps'] ) ? $service_data['available_apps'] : null; |