minor fix

This commit is contained in:
Harald Milz 2019-04-11 16:37:07 +02:00
parent e43ee01915
commit 96dfb994e8

View file

@ -41,7 +41,7 @@ require_once dirname( __FILE__ ) . "/gcal-import-admin.php";
// create custom scheduler from custom option
add_filter( 'cron_schedules', 'gcal_cron_interval' );
function gcal_cron_interval( $schedules ) {
$options = get_option('gcal_options');
$current = ( isset ($options['gcal_timer']) ? $options['gcal_timer'] : 60 ); // default 60 minutes