Possible refresh fix

This commit is contained in:
Justin Foell
2020-11-02 11:31:05 -06:00
parent 7402f471fb
commit dd8bcec5d4
2 changed files with 12 additions and 5 deletions
+5
View File
@@ -305,6 +305,11 @@ class WPStrava_Settings {
$input = filter_input_array( INPUT_POST, $input_args );
// All IDs have been removed.
if ( empty( $input['strava_id'] ) ) {
return array();
}
// Chop $nicknames to same size as ids.
$nicknames = array_slice( $nicknames, 0, count( $input['strava_id'] ) );