gcal_cron_interval: fixed numerical vs. string
This commit is contained in:
parent
e6387cabc5
commit
cddfd3dede
|
@ -44,7 +44,7 @@ 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
|
||||
$current = ( isset ($options['gcal_timer']) ? $options['gcal_timer'] : 60 ); // default 60 minutes
|
||||
$interval = 60 * $current; // wir speichern Minuten
|
||||
$schedules['gcal_interval'] = array(
|
||||
'interval' => $interval,
|
||||
|
|
Reference in New Issue