Revert "cast interval to int in case of unexpected option setting"

This reverts commit 66d399832e.
This commit is contained in:
ctr49 2021-02-19 12:29:11 +01:00
parent 66d399832e
commit 44960a2ad4
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ add_filter( 'cron_schedules', 'wolkal3000_cron_interval' );
function wolkal3000_cron_interval( $schedules ) { function wolkal3000_cron_interval( $schedules ) {
$options = get_option('wolkal3000_options'); $options = get_option('wolkal3000_options');
$current = ( isset ($options['wolkal3000_timer']) ? $options['wolkal3000_timer'] : 60 ); // default 60 minutes $current = ( isset ($options['wolkal3000_timer']) ? $options['wolkal3000_timer'] : 60 ); // default 60 minutes
$interval = 60 * int($current); // wir speichern Minuten $interval = 60 * $current; // wir speichern Minuten
$schedules['wolkal3000_interval'] = array( $schedules['wolkal3000_interval'] = array(
'interval' => $interval, 'interval' => $interval,
'display' => esc_html__( 'Calendar fetch interval' ), 'display' => esc_html__( 'Calendar fetch interval' ),