mirror of
https://github.com/10h30/wp-strava.git
synced 2026-07-16 05:03:41 +09:00
Possible refresh fix
This commit is contained in:
@@ -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'] ) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user